Skip to content

Commit

Permalink
Dock should update it's clip since it manages itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolique committed Jan 29, 2024
1 parent 0030589 commit 47d4b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Dock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public virtual void UpdateLayout(GameTime gameTime) {
X = DockLeft;
Y = DockTop;

if (Parent != null) {
Clip = Bounds.Intersection(Parent.Clip);
}

if (Child != null) {
Child.X = X;
Child.Y = Y;
Expand Down

0 comments on commit 47d4b1d

Please sign in to comment.