fix spacing getting lost

This commit is contained in:
Aran-Fey
2025-04-24 09:37:57 +02:00
parent de401f4691
commit 1aee40fa73
+1
View File
@@ -329,6 +329,7 @@ export class SwitcherBarComponent extends ComponentBase<SwitcherBarState> {
// Make sure the orientation is set correctly
deltaState.orientation =
deltaState.orientation ?? this.state.orientation;
deltaState.spacing = deltaState.spacing ?? this.state.spacing;
// Pass on all available space to the marker options
requestAnimationFrame(() => {