David Catuhe 7 년 전
부모
커밋
13c9d61895
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {
                             if (this._autoScale) {
                                 this.synchronizeSizeWithContent();
                                 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.width = this.width;
                                 this._root.height = this.height;
                                 this._root.height = this.height;
                             }
                             }