Browse Source

Dock should update it's clip since it manages itself

Jean-David Moisan 1 year ago
parent
commit
47d4b1d0f0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/Dock.cs

+ 4 - 0
Source/Dock.cs

@@ -32,6 +32,10 @@ namespace Apos.Gui {
             X = DockLeft;
             Y = DockTop;
 
+            if (Parent != null) {
+                Clip = Bounds.Intersection(Parent.Clip);
+            }
+
             if (Child != null) {
                 Child.X = X;
                 Child.Y = Y;