mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Recalculate geometry after styling in FlatSliderUI
This commit is contained in:
@@ -227,7 +227,11 @@ public class FlatSliderUI
|
|||||||
|
|
||||||
/** @since 2 */
|
/** @since 2 */
|
||||||
protected void applyStyle( Object style ) {
|
protected void applyStyle( Object style ) {
|
||||||
|
boolean recalc = ( oldStyleValues != null && !oldStyleValues.isEmpty() );
|
||||||
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
|
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
|
||||||
|
recalc |= ( oldStyleValues != null && !oldStyleValues.isEmpty() );
|
||||||
|
if( recalc )
|
||||||
|
calculateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 2 */
|
/** @since 2 */
|
||||||
|
|||||||
Reference in New Issue
Block a user