Browse Source

Dock should update it's clip since it manages itself

Jean-David Moisan 1 năm trước cách đây
mục cha
commit
47d4b1d0f0
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;