Browse Source

fixes issue 1353: Any x setting <= 250 displays the same as x = 0

git-svn-id: http://svn.dmdirc.com/trunk@4220 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Gregory Holmes 16 years ago
parent
commit
bf470550b5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/com/dmdirc/addons/osdplugin/OsdWindow.java

+ 2
- 1
src/com/dmdirc/addons/osdplugin/OsdWindow.java View File

@@ -165,7 +165,7 @@ public final class OsdWindow extends JDialog implements MouseListener,
165 165
                 "bgcolour", Color.decode("#2222aa")));
166 166
         
167 167
         setContentPane(panel);
168
-        setLayout(new MigLayout("wmin 500, wmax 500, ins rel, fill, pack"));
168
+        setLayout(new MigLayout("wmin 500, wmax 500, ins rel, fill"));
169 169
         
170 170
         label = new JLabel(text);
171 171
         label.setForeground(IdentityManager.getGlobalConfig().getOptionColour("plugin-OSD",
@@ -177,6 +177,7 @@ public final class OsdWindow extends JDialog implements MouseListener,
177 177
             add(label, "alignx center");
178 178
             
179 179
         setVisible(true);
180
+        pack();
180 181
         
181 182
         if (config) {
182 183
             this.addMouseMotionListener(this);

Loading…
Cancel
Save