David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
0f9d39076d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      sandbox/index.js

+ 3 - 0
sandbox/index.js

@@ -300,6 +300,7 @@ if (BABYLON.Engine.isSupported()) {
 
     if (kiosk) {
         footer.style.display = "none";
+        canvas.style.height = "100%";
     }
 
     btnInspector.addEventListener('click', function() {
@@ -321,9 +322,11 @@ if (BABYLON.Engine.isSupported()) {
         if (event.keyCode === 32 && event.target.nodeName !== "INPUT") {
             if (footer.style.display === "none") {
                 footer.style.display = "block";
+                canvas.style.height = "calc(100% - 56px)";
             }
             else {
                 footer.style.display = "none";
+                canvas.style.height = "100%";
                 errorZone.style.display = "none";
                 if (debugLayerEnabled) {
                     currentScene.debugLayer.hide();