TabbedPane: fixed missing arrow in "more tabs" button when changing tabPlacement to left/right and back to top/bottom (PR #190)

This commit is contained in:
Karl Tauber
2020-11-01 17:19:12 +01:00
parent c6d561f2df
commit cd264586ca

View File

@@ -1405,7 +1405,8 @@ public class FlatTabbedPaneUI
if( direction == EAST || direction == WEST ) {
int xoffset = (getWidth() / 2) - getHeight();
setXOffset( (direction == EAST) ? xoffset : -xoffset );
}
} else
setXOffset( 0 );
super.paint( g );
}