Browse Source

Fixed misaligned tab area border.

pull/127/head
weisj 5 years ago
parent
commit
09b2d91a45
  1. 2
      core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUI.java

2
core/src/main/java/com/github/weisj/darklaf/ui/tabbedpane/DarkTabbedPaneUI.java

@ -389,7 +389,7 @@ public class DarkTabbedPaneUI extends DarkTabbedPaneUIBridge {
int x = calculateTabAreaWidth(tabPlacement, runCount, maxTabWidth);
switch (tabPlacement) {
case TOP:
paintTabAreaBorder(g, tabPlacement, 0, 0, width, y);
paintTabAreaBorder(g, tabPlacement, 0, 0, width, y + 1);
break;
case BOTTOM:
paintTabAreaBorder(g, tabPlacement, 0, height - y, width, y + 1);

Loading…
Cancel
Save