소스 검색

Work on padding on status bar

Issue #522
pull/525/head
Greg Holmes 7 년 전
부모
커밋
b8737bdc95
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    3
      ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/SwingStatusBar.java

+ 2
- 3
ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/statusbar/SwingStatusBar.java 파일 보기

@@ -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…
취소
저장