浏览代码

Inspector - fix height bug when the panel was not exactly the window height

Temechon 8 年之前
父节点
当前提交
b1ec554be3

文件差异内容过多而无法显示
+ 3 - 3
dist/preview release/inspector/babylon.inspector.bundle.js


+ 2 - 0
dist/preview release/inspector/babylon.inspector.css

@@ -82,6 +82,8 @@
       color: #5db0d7; }
   .insp-wrapper .tab-panel {
     height: 100%; }
+    .insp-wrapper .tab-panel.searchable {
+      height: calc(100% - 30px - 10px); }
     .insp-wrapper .tab-panel .scene-actions {
       overflow-y: auto; }
       .insp-wrapper .tab-panel .scene-actions .actions-title {

+ 1 - 0
dist/preview release/inspector/babylon.inspector.js

@@ -1955,6 +1955,7 @@ var INSPECTOR;
             _this._inspector = insp;
             // Build the properties panel : a div that will contains the tree and the detail panel
             _this._panel = INSPECTOR.Helpers.CreateDiv('tab-panel');
+            _this._panel.classList.add('searchable');
             // Search bar
             _this._searchBar = new INSPECTOR.SearchBar(_this);
             // Add searchbar

文件差异内容过多而无法显示
+ 2 - 2
dist/preview release/inspector/babylon.inspector.min.js


+ 1 - 1
inspector/index.html

@@ -42,7 +42,7 @@
         #game-canvas {
             position:absolute;
             width:100%;
-            height:100%; 
+            height:650px; 
             top:0;
             left : 150px;
         }

+ 3 - 0
inspector/sass/_tabPanel.scss

@@ -1,5 +1,8 @@
 .tab-panel {
     height:100%;     
+    &.searchable {
+        height:calc(100% - #{$searchbar-height} - 10px);   
+    }  
     
     .scene-actions {
         overflow-y: auto;

+ 1 - 0
inspector/src/tabs/PropertyTab.ts

@@ -23,6 +23,7 @@ module INSPECTOR{
             
             // Build the properties panel : a div that will contains the tree and the detail panel
             this._panel = Helpers.CreateDiv('tab-panel') as HTMLDivElement;
+            this._panel.classList.add('searchable');
             
             // Search bar
             this._searchBar = new SearchBar(this);