Ver código fonte

Fixes issue 2275: Rendering issue with long categories in prefs dialog

Change-Id: Ie6a0b0b024627752c63d73ee72a75bb0b76a483c
Reviewed-on: http://gerrit.dmdirc.com/775
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.3
Gregory Holmes 14 anos atrás
pai
commit
f4f093fb39

+ 5
- 1
src/com/dmdirc/addons/ui_swing/dialogs/prefs/CategoryPanel.java Ver arquivo

@@ -174,7 +174,11 @@ public class CategoryPanel extends JPanel {
174 174
                 /** {@inheritDoc} */
175 175
                 @Override
176 176
                 public void run() {
177
-                    scrollPane.setViewportView(panels.get(category));
177
+                    final JPanel panel = panels.get(category);
178
+                    scrollPane.setViewportView(panel);
179
+                    //Hack around mig bug
180
+                    panel.invalidate();
181
+                    panel.validate();
178 182
                     if (category == null) {
179 183
                         title.setText("Preferences");
180 184
                     } else {

Carregando…
Cancelar
Salvar