Bladeren bron

Fixes CLIENT-158

Change-Id: I98f3031be6fbcd7ceb139dfc88d361e60105ca00
Reviewed-on: http://gerrit.dmdirc.com/1763
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.5
Greg Holmes 13 jaren geleden
bovenliggende
commit
0759511fdd
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4
    2
      src/com/dmdirc/addons/ui_swing/components/substitutions/SubstitutionsPanel.java

+ 4
- 2
src/com/dmdirc/addons/ui_swing/components/substitutions/SubstitutionsPanel.java Bestand weergeven

@@ -27,6 +27,7 @@ import com.dmdirc.addons.ui_swing.components.text.TextLabel;
27 27
 import java.util.List;
28 28
 
29 29
 import javax.swing.BorderFactory;
30
+import javax.swing.Box;
30 31
 import javax.swing.JLabel;
31 32
 import javax.swing.JPanel;
32 33
 import javax.swing.JSeparator;
@@ -138,10 +139,10 @@ public abstract class SubstitutionsPanel<T> extends JPanel {
138 139
                 "editing the field, to insert it.");
139 140
         if (alignment.equals(Alignment.VERTICAL)) {
140 141
             add(textLabel, "spany, aligny top, wmin 225, wmax 225");
141
-            add(new JSeparator(JSeparator.VERTICAL), "growy, pushy, spany");
142
+            add(new JSeparator(JSeparator.VERTICAL), "growy, spany");
142 143
         } else {
143 144
             add(textLabel, "spanx, aligny top");
144
-            add(new JSeparator(JSeparator.HORIZONTAL), "growy, pushy, spanx");
145
+            add(new JSeparator(JSeparator.HORIZONTAL), "growy, spanx");
145 146
         }
146 147
 
147 148
         for (SubstitutionLabel label : substitutions) {
@@ -152,6 +153,7 @@ public abstract class SubstitutionsPanel<T> extends JPanel {
152 153
             add(new JLabel("No substitutions."),
153 154
                     "growx, pushx, aligny top, align center");
154 155
         }
156
+        add(Box.createVerticalGlue(), "growy, pushy");
155 157
 
156 158
         setVisible(visible);
157 159
     }

Laden…
Annuleren
Opslaan