mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
JIDE: JideTabbedPane: fixed location of tab title editing box
This commit is contained in:
@@ -503,6 +503,13 @@ public class FlatJideTabbedPaneUI
|
||||
super.layoutLabel( tabPlacement, metrics, tabIndex, title, icon, tabRect, iconRect, textRect, isSelected );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Rectangle getTabsTextBoundsAt( int tabIndex ) {
|
||||
Rectangle rect = super.getTabsTextBoundsAt( tabIndex );
|
||||
rect.x += getTabInsets( _tabPane.getTabPlacement(), tabIndex ).left;
|
||||
return rect;
|
||||
}
|
||||
|
||||
private boolean isLastInRun( int tabIndex ) {
|
||||
int run = getRunForTab( _tabPane.getTabCount(), tabIndex );
|
||||
return lastTabInRun( _tabPane.getTabCount(), run ) == tabIndex;
|
||||
|
||||
Reference in New Issue
Block a user