Browse Source

fix for GUI in ie11

Adam Bowman 8 years ago
parent
commit
33bb9ceb80
1 changed files with 1 additions and 1 deletions
  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";
                 fontAscent = block.getBoundingClientRect().top - text.getBoundingClientRect().top;
             } finally {
-                div.remove();
+                document.body.removeChild(div);
             }
             var result = { ascent: fontAscent, height: fontHeight, descent: fontHeight - fontAscent };
             Control._FontHeightSizes[font] = result;