Pārlūkot izejas kodu

Better children management for controls (GUI)

David Catuhe 6 gadi atpakaļ
vecāks
revīzija
6631fe3e1f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);
         goodContainer.addControl(control);
         this._childControls.push(control);
         this._childControls.push(control);
         control._tag = key;
         control._tag = key;
+        control.parent = this;
 
 
         this._markAsDirty();
         this._markAsDirty();