Fix layout resize issues
This commit is contained in:
parent
7ee4e061de
commit
7fe54cbb92
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue