David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
13c9d61895
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                             }