Recalculate geometry after styling in FlatSliderUI

This commit is contained in:
daWoife
2025-12-31 11:28:41 +01:00
committed by GitHub
parent 7680c3a817
commit 7e6dc269c5

View File

@@ -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 */