Merge PR #1074: Recalculate geometry after styling in FlatSliderUI

This commit is contained in:
Karl Tauber
2026-01-13 20:03:54 +01:00
2 changed files with 8 additions and 0 deletions

View File

@@ -227,7 +227,13 @@ public class FlatSliderUI
/** @since 2 */
protected void applyStyle( Object style ) {
Dimension oldThumbSize = thumbSize;
int oldFocusWidth = focusWidth;
oldStyleValues = FlatStylingSupport.parseAndApply( oldStyleValues, style, this::applyStyleProperty );
if( !thumbSize.equals( oldThumbSize ) || focusWidth != oldFocusWidth )
calculateGeometry();
}
/** @since 2 */