ソースを参照

Work on padding on status bar

Issue #522
pull/525/head
Greg Holmes 7年前
コミット
b8737bdc95

+ 2
- 3
ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/SwingStatusBar.java ファイルの表示

65
             final MessageLabel messageLabel) {
65
             final MessageLabel messageLabel) {
66
         checkOnEDT();
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
         componentConstraints = "sgy components, hmax " + height + ", hmin " + height
70
         componentConstraints = "sgy components, hmax " + height + ", hmin " + height
72
                 + ", wmin 20, shrink 0";
71
                 + ", wmin 20, shrink 0";
73
 
72
 

読み込み中…
キャンセル
保存