Browse Source

improve gui doc for clipChildren

David Catuhe 6 năm trước cách đây
mục cha
commit
660cec17f9
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      gui/src/2D/controls/control.ts

+ 4 - 1
gui/src/2D/controls/control.ts

@@ -121,7 +121,10 @@ export class Control {
     /** Gets or sets a boolean indicating if the control can be focusable */
     public isFocusInvisible = false;
 
-    /** Gets or sets a boolean indicating if the children are clipped to the current control bounds */
+    /** 
+     * Gets or sets a boolean indicating if the children are clipped to the current control bounds.
+     * Please note that not clipping children may generate issues with adt.useInvalidateRectOptimization so it is recommended to turn this optimization off if you want to use unclipped children
+     */
     public clipChildren = true;
 
     /**