瀏覽代碼

Merge branch 'master' of https://github.com/Temechon/Babylon.js

Conflicts:
	inspector/src/tabs/ConsoleTab.ts
Temechon 8 年之前
父節點
當前提交
de14e09f56
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      inspector/src/tabs/ConsoleTab.ts

+ 4 - 2
inspector/src/tabs/ConsoleTab.ts

@@ -60,6 +60,7 @@ module INSPECTOR {
             this._bjsPanelContent.innerHTML = BABYLON.Tools.LogCache;
             BABYLON.Tools.OnNewCacheEntry = (entry: string) => {
                 this._bjsPanelContent.innerHTML += entry;
+                this._bjsPanelContent.scrollTop = this._bjsPanelContent.scrollHeight; 
             };
 
             // Testing
@@ -87,10 +88,11 @@ module INSPECTOR {
             let callerLine = Helpers.CreateDiv('caller', this._consolePanelContent);
             callerLine.textContent = caller;
 
-            let line = Helpers.CreateDiv(type, this._consolePanelContent);
+            let line = Helpers.CreateDiv(type, this._consolePanelContent); 
             line.textContent += message ; 
-        }
 
+            this._consolePanelContent.scrollTop = this._consolePanelContent.scrollHeight; 
+        }
         private _addConsoleLog(...params : any[]) {
             
             // Get caller name if not null