diff --git a/src/Ursa/Controls/ToolBar/ToolBarPanel.cs b/src/Ursa/Controls/ToolBar/ToolBarPanel.cs index df3971d..6b547bc 100644 --- a/src/Ursa/Controls/ToolBar/ToolBarPanel.cs +++ b/src/Ursa/Controls/ToolBar/ToolBarPanel.cs @@ -100,16 +100,13 @@ public class ToolBarPanel: StackPanel protected override Size ArrangeOverride(Size finalSize) { - //Children.Clear(); - //OverflowPanel?.Children.Clear(); var logicalChildren = _parent?.GetLogicalChildren().OfType().ToList(); - List thisPanel = new List(); - List thatPanel = new List(); if(logicalChildren is null) return finalSize; bool overflow = false; for (int i = 0; i < logicalChildren.Count; i++) { var child = logicalChildren[i]; + if(child is ToolBarSeparator s) s.IsVisible = true; var isItemOverflow = ToolBar.GetIsOverflowItem(child); if(isItemOverflow) overflow = true; if (Children?.Contains(child) == true)