Skip to content

Commit

Permalink
Update DockPanel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Poker-sang authored Mar 1, 2024
1 parent 78f0dd7 commit 87407f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Primitives/src/DockPanel/DockPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected override Size ArrangeOverride(Size finalSize)

if (LastChildFill)
{
var child = Children[^1];
var child = Children[Children.Count - 1];
child.Arrange(new Rect(currentBounds.X, currentBounds.Y, currentBounds.Width, currentBounds.Height));
}

Expand Down

0 comments on commit 87407f6

Please sign in to comment.