Browse Source

fixes issue 1486: Server settings dialog is sometimes bigger than screen resolution

git-svn-id: http://svn.dmdirc.com/trunk@4414 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Gregory Holmes 16 years ago
parent
commit
685704fcd6

+ 3
- 2
src/com/dmdirc/ui/swing/dialogs/channelsetting/ChannelSettingsDialog.java View File

@@ -35,6 +35,7 @@ import java.awt.event.ActionEvent;
35 35
 import java.awt.event.ActionListener;
36 36
 
37 37
 import javax.swing.JButton;
38
+import javax.swing.JScrollPane;
38 39
 import javax.swing.JTabbedPane;
39 40
 import javax.swing.WindowConstants;
40 41
 
@@ -126,7 +127,7 @@ public final class ChannelSettingsDialog extends StandardDialog implements Actio
126 127
 
127 128
         orderButtons(new JButton(), new JButton());
128 129
 
129
-        getContentPane().setLayout(new MigLayout("fill, wrap 1, ins panel"));
130
+        getContentPane().setLayout(new MigLayout("fill, wrap 1, ins panel, hmax 80sp"));
130 131
         getContentPane().add(tabbedPane, "grow");
131 132
         getContentPane().add(getLeftButton(), "split 3, right");
132 133
         getContentPane().add(getRightButton(), "right");
@@ -154,7 +155,7 @@ public final class ChannelSettingsDialog extends StandardDialog implements Actio
154 155
     private void initIrcTab() {
155 156
         channelModesPane =
156 157
                 new ChannelModesPane(channel);
157
-        tabbedPane.addTab("Channel Modes", channelModesPane);
158
+        tabbedPane.addTab("Channel Modes", new JScrollPane(channelModesPane));
158 159
     }
159 160
 
160 161
     /** Initialises the IRC Settings tab. */

+ 3
- 2
src/com/dmdirc/ui/swing/dialogs/serversetting/ServerSettingsDialog.java View File

@@ -34,6 +34,7 @@ import java.awt.event.ActionEvent;
34 34
 import java.awt.event.ActionListener;
35 35
 
36 36
 import javax.swing.JButton;
37
+import javax.swing.JScrollPane;
37 38
 import javax.swing.JTabbedPane;
38 39
 
39 40
 import net.miginfocom.swing.MigLayout;
@@ -137,14 +138,14 @@ public final class ServerSettingsDialog extends StandardDialog implements Action
137 138
             addSettings();
138 139
         }
139 140
 
140
-        tabbedPane.add("User modes", modesPanel);
141
+        tabbedPane.add("User modes", new JScrollPane(modesPanel));
141 142
         tabbedPane.add("Ignore list", ignoreList);
142 143
         tabbedPane.add("Perform", performPanel);
143 144
         if (settingsPanel != null) {
144 145
             tabbedPane.add("Settings", settingsPanel);
145 146
         }
146 147
 
147
-        setLayout(new MigLayout("fill, wrap 1"));
148
+        setLayout(new MigLayout("fill, wrap 1, hmax 80sp"));
148 149
 
149 150
         add(tabbedPane, "grow");
150 151
         add(getLeftButton(), "split 2, right");

Loading…
Cancel
Save