浏览代码

Border ClippingRect bug fix

Jean-David Moisan 6 年之前
父节点
当前提交
04b8eee7cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/Border.cs

+ 1 - 1
Source/Border.cs

@@ -89,7 +89,7 @@ namespace Apos.Gui {
             Item.Width = Width - MarginLeft - MarginRight;
             Item.Width = Width - MarginLeft - MarginRight;
             Item.Height = Height - MarginTop - MarginBottom;
             Item.Height = Height - MarginTop - MarginBottom;
             Item.Position = Position + _topLeftOffset;
             Item.Position = Position + _topLeftOffset;
-            Item.ClippingRect = ClippingRect;
+            Item.ClippingRect = ClipRectangle(Item.BoundingRect);
 
 
             Item.UpdateSetup();
             Item.UpdateSetup();
         }
         }