Skip to content

Commit

Permalink
Update ProportionalStackPanel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed May 12, 2023
1 parent 1c8eee2 commit b258061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dock.Avalonia/Controls/ProportionalStackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public Orientation Orientation

internal List<Control?> GetChildren()
{
return Children.OfType<Control>().Select(c =>
return Children.OfType<Control?>().Select(c =>
{
if (c is ContentPresenter cp)
{
cp.UpdateChild();
return (Control?)cp.Child;
return cp.Child;
}
return (Control?)c;
return c;
}).ToList();
}

Expand Down

0 comments on commit b258061

Please sign in to comment.