Fix layout resize issues

This commit is contained in:
Reinhard Pointner 2016-10-31 01:42:05 +08:00
parent 7ee4e061de
commit 7fe54cbb92
1 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ class BindingDialog extends JDialog {
this.infoObjectFormat = infoObjectFormat; this.infoObjectFormat = infoObjectFormat;
JComponent root = (JComponent) getContentPane(); JComponent root = (JComponent) getContentPane();
root.setLayout(new MigLayout("nogrid, novisualpadding, fill, insets dialog")); root.setLayout(new MigLayout("nogrid, novisualpadding, fill, insets dialog", "", "[pref!]paragraph[pref!]2px[grow,fill]paragraph[pref!]"));
// decorative tabbed pane // decorative tabbed pane
JTabbedPane inputContainer = new JTabbedPane(); JTabbedPane inputContainer = new JTabbedPane();
@ -93,10 +93,10 @@ class BindingDialog extends JDialog {
inputPanel.add(createImageButton(mediaInfoAction), "gap rel, w 28px!, h 28px!"); inputPanel.add(createImageButton(mediaInfoAction), "gap rel, w 28px!, h 28px!");
inputPanel.add(createImageButton(selectFileAction), "gap rel, w 28px!, h 28px!, wrap paragraph"); inputPanel.add(createImageButton(selectFileAction), "gap rel, w 28px!, h 28px!, wrap paragraph");
inputContainer.add("Bindings", inputPanel); inputContainer.add("Bindings", inputPanel);
root.add(inputContainer, "growx, wrap paragraph");
root.add(new JLabel("Preview:"), "gap 5px, wrap 2px"); root.add(inputContainer, "growx, wrap");
root.add(new JScrollPane(createBindingTable(bindingModel)), "growx, wrap paragraph:push"); root.add(new JLabel("Preview:"), "gap 5px, wrap");
root.add(new JScrollPane(createBindingTable(bindingModel)), "grow, growprio 200, wrap");
if (editable) { if (editable) {
root.add(newButton("Use Bindings", ResourceManager.getIcon("dialog.continue"), evt -> finish(true)), "tag apply"); root.add(newButton("Use Bindings", ResourceManager.getIcon("dialog.continue"), evt -> finish(true)), "tag apply");