Browse Source

InternalFrame: Use FontMetrics of label to calculate the title bar height. Relates to #239

pull/245/head
weisj 3 years ago
parent
commit
71a4c37e52
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 2
      core/src/main/java/com/github/weisj/darklaf/ui/internalframe/DarkInternalFrameTitlePane.java

2
core/src/main/java/com/github/weisj/darklaf/ui/internalframe/DarkInternalFrameTitlePane.java

@ -307,7 +307,7 @@ public class DarkInternalFrameTitlePane extends BasicInternalFrameTitlePane impl
// Calculate height.
Icon icon = frame.getFrameIcon();
FontMetrics fm = frame.getFontMetrics(getFont());
FontMetrics fm = label.getFontMetrics(label.getFont());
int iconHeight = 0;
if (icon != null) {

Loading…
Cancel
Save