diff --git a/src/HierarchyGrid.Avalonia/Grid.axaml.cs b/src/HierarchyGrid.Avalonia/Grid.axaml.cs index 53d841c..e6e81b2 100644 --- a/src/HierarchyGrid.Avalonia/Grid.axaml.cs +++ b/src/HierarchyGrid.Avalonia/Grid.axaml.cs @@ -543,11 +543,7 @@ GridSplitter GetSplitter(int idx) .HeadersCoordinates.Where(x => x.Definition.Definition.Count() == 1) .ToArray(); - foreach ( - var c in headers.Where(t => - t.Definition is PositionedDefinition pdef && pdef.Definition is ConsumerDefinition - ) - ) + foreach (var c in headers.Where(t => t.Definition.Definition is ConsumerDefinition)) { var (coord, def) = c; var splitter = GetSplitter(splitterCount++); diff --git a/src/HierarchyGrid/Grid.xaml.cs b/src/HierarchyGrid/Grid.xaml.cs index a93e86c..95aa54f 100644 --- a/src/HierarchyGrid/Grid.xaml.cs +++ b/src/HierarchyGrid/Grid.xaml.cs @@ -643,7 +643,7 @@ GridSplitter GetSplitter(int idx) .HeadersCoordinates.Where(x => x.Definition.Definition.Count() == 1) .ToArray(); - foreach (var c in headers.Where(t => t.Definition is ConsumerDefinition)) + foreach (var c in headers.Where(t => t.Definition.Definition is ConsumerDefinition)) { var (coord, def) = c; var splitter = GetSplitter(splitterCount++);