Prechádzať zdrojové kódy

Clip musn't extend outside the component's bounds

Jean-David Moisan 3 rokov pred
rodič
commit
19b0e2874f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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);
             }