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
                 "bgcolour", Color.decode("#2222aa")));
165
                 "bgcolour", Color.decode("#2222aa")));
166
         
166
         
167
         setContentPane(panel);
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
         label = new JLabel(text);
170
         label = new JLabel(text);
171
         label.setForeground(IdentityManager.getGlobalConfig().getOptionColour("plugin-OSD",
171
         label.setForeground(IdentityManager.getGlobalConfig().getOptionColour("plugin-OSD",
177
             add(label, "alignx center");
177
             add(label, "alignx center");
178
             
178
             
179
         setVisible(true);
179
         setVisible(true);
180
+        pack();
180
         
181
         
181
         if (config) {
182
         if (config) {
182
             this.addMouseMotionListener(this);
183
             this.addMouseMotionListener(this);

Loading…
Cancel
Save