Browse Source

Better children management for controls (GUI)

David Catuhe 6 years ago
parent
commit
6631fe3e1f
1 changed files with 1 additions and 0 deletions
  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();