Browse Source

Merge pull request #525 from greboid/master

Work on padding on status bar
pull/526/head
Greg Holmes 7 years ago
parent
commit
9a9e71e44a

+ 2
- 3
ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/SwingStatusBar.java View File

@@ -65,9 +65,8 @@ public class SwingStatusBar extends JPanel {
65 65
             final MessageLabel messageLabel) {
66 66
         checkOnEDT();
67 67
 
68
-        final int height = getFontMetrics(UIManager.getFont("Table.font")).getHeight()
69
-                + (int) PlatformDefaults.getUnitValueX("related").getValue()
70
-                + (int) PlatformDefaults.getUnitValueX("related").getValue();
68
+        final int height = getFontMetrics(UIManager.getFont("Label.font")).getHeight()
69
+                + (int) PlatformDefaults.getUnitValueY("related").getValue();
71 70
         componentConstraints = "sgy components, hmax " + height + ", hmin " + height
72 71
                 + ", wmin 20, shrink 0";
73 72
 

Loading…
Cancel
Save