Преглед на файлове

Merge pull request #2439 from abow/playground

right align fps label with render canvas
David Catuhe преди 8 години
родител
ревизия
918bf99333
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Playground/js/index.js

+ 4 - 0
Playground/js/index.js

@@ -341,6 +341,7 @@
                         scene.render();
                     }
 
+                    fpsLabel.style.right = document.body.clientWidth - (jsEditor.domElement.clientWidth + canvas.clientWidth) + "px";
                     fpsLabel.innerHTML = engine.getFps().toFixed() + " fps";
                 });
 
@@ -398,6 +399,9 @@
                 if(scene){
                     if(showInspector){
                         scene.debugLayer.show({initialTab:initialTabIndex});
+                        scene.executeWhenReady(function(){
+                            scene.debugLayer._inspector.refresh();
+                        })
                     }else if(showDebugLayer){
                         scene.debugLayer.show();
                     }