mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
JIDE: JideTabbedPane: tab layout fixes for compact resize mode
This commit is contained in:
@@ -507,6 +507,29 @@ public class FlatJideTabbedPaneUI
|
||||
return lastTabInRun( _tabPane.getTabCount(), run ) == tabIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void ensureCurrentRects( int leftMargin, int tabCount ) {
|
||||
int oldFitStyleBoundSize = _fitStyleBoundSize;
|
||||
int oldFitStyleFirstTabMargin = _fitStyleFirstTabMargin;
|
||||
int oldCompressedStyleNoIconRectSize = _compressedStyleNoIconRectSize;
|
||||
int oldCompressedStyleIconMargin = _compressedStyleIconMargin;
|
||||
int oldFixedStyleRectSize = _fixedStyleRectSize;
|
||||
|
||||
_fitStyleBoundSize = scale( _fitStyleBoundSize );
|
||||
_fitStyleFirstTabMargin = scale( _fitStyleFirstTabMargin );
|
||||
_compressedStyleNoIconRectSize = scale( _compressedStyleNoIconRectSize );
|
||||
_compressedStyleIconMargin = scale( _compressedStyleIconMargin );
|
||||
_fixedStyleRectSize = scale( _fixedStyleRectSize );
|
||||
|
||||
super.ensureCurrentRects( leftMargin, tabCount );
|
||||
|
||||
_fitStyleBoundSize = oldFitStyleBoundSize;
|
||||
_fitStyleFirstTabMargin = oldFitStyleFirstTabMargin;
|
||||
_compressedStyleNoIconRectSize = oldCompressedStyleNoIconRectSize;
|
||||
_compressedStyleIconMargin = oldCompressedStyleIconMargin;
|
||||
_fixedStyleRectSize = oldFixedStyleRectSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ensureCloseButtonCreated() {
|
||||
super.ensureCloseButtonCreated();
|
||||
|
||||
@@ -84,3 +84,5 @@ JideTabbedPane.shadow = $TabbedPane.shadow
|
||||
|
||||
JideTabbedPane.closeButtonLeftMargin = 0
|
||||
JideTabbedPane.closeButtonRightMargin = 0
|
||||
JideTabbedPane.fitStyleBoundSize = {integer}0
|
||||
JideTabbedPane.fitStyleFirstTabMargin = 0
|
||||
|
||||
Reference in New Issue
Block a user