Explorar o código

Better children management for controls (GUI)

David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
6631fe3e1f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      gui/src/2D/controls/grid.ts

+ 1 - 0
gui/src/2D/controls/grid.ts

@@ -291,6 +291,7 @@ export class Grid extends Container {
         goodContainer.addControl(control);
         this._childControls.push(control);
         control._tag = key;
+        control.parent = this;
 
         this._markAsDirty();