瀏覽代碼

Clip musn't extend outside the component's bounds

Jean-David Moisan 3 年之前
父節點
當前提交
19b0e2874f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/IMGUI.cs

+ 1 - 1
Source/IMGUI.cs

@@ -64,7 +64,7 @@ namespace Apos.Gui {
                 c.Width = c.PrefWidth;
                 c.Height = c.PrefHeight;
 
-                c.Clip = Bounds;
+                c.Clip = c.Bounds.Intersection(Clip);
 
                 c.UpdateSetup(gameTime);
             }