David Catuhe 6 anni fa
parent
commit
0f9d39076d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      sandbox/index.js

+ 3 - 0
sandbox/index.js

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