Explorar o código

fix for GUI in ie11

Adam Bowman %!s(int64=8) %!d(string=hai) anos
pai
achega
33bb9ceb80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/src/controls/control.ts

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

@@ -868,7 +868,7 @@ module BABYLON.GUI {
                 block.style.verticalAlign = "baseline";
                 block.style.verticalAlign = "baseline";
                 fontAscent = block.getBoundingClientRect().top - text.getBoundingClientRect().top;
                 fontAscent = block.getBoundingClientRect().top - text.getBoundingClientRect().top;
             } finally {
             } finally {
-                div.remove();
+                document.body.removeChild(div);
             }
             }
             var result = { ascent: fontAscent, height: fontHeight, descent: fontHeight - fontAscent };
             var result = { ascent: fontAscent, height: fontHeight, descent: fontHeight - fontAscent };
             Control._FontHeightSizes[font] = result;
             Control._FontHeightSizes[font] = result;