David Catuhe 7 tahun lalu
induk
melakukan
13c9d61895
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      gui/src/controls/image.ts

+ 1 - 1
gui/src/controls/image.ts

@@ -245,7 +245,7 @@ module BABYLON.GUI {
                             if (this._autoScale) {
                                 this.synchronizeSizeWithContent();
                             }
-                            if (this._root) {
+                            if (this._root && this._root.parent) { // Will update root size if root is not the top root
                                 this._root.width = this.width;
                                 this._root.height = this.height;
                             }