浏览代码

Editor: Sidebar.History to normal Panel.

Mr.doob 9 年之前
父节点
当前提交
30bbd4d7cf
共有 2 个文件被更改,包括 4 次插入16 次删除
  1. 0 6
      editor/js/Config.js
  2. 4 10
      editor/js/Sidebar.History.js

+ 0 - 6
editor/js/Config.js

@@ -18,12 +18,6 @@ var Config = function () {
 		'settings/history': false,
 
 		'ui/sidebar/animation/collapsed': true,
-		'ui/sidebar/geometry/collapsed': true,
-		'ui/sidebar/history/collapsed': true,
-		'ui/sidebar/material/collapsed': true,
-		'ui/sidebar/object3d/collapsed': false,
-		'ui/sidebar/project/collapsed': true,
-		'ui/sidebar/scene/collapsed': false,
 		'ui/sidebar/script/collapsed': true
 	};
 

+ 4 - 10
editor/js/Sidebar.History.js

@@ -11,15 +11,9 @@ Sidebar.History = function ( editor ) {
 
 	var history = editor.history;
 
-	var container = new UI.CollapsiblePanel();
-	container.setCollapsed( editor.config.getKey( 'ui/sidebar/history/collapsed' ) );
-	container.onCollapsedChange( function ( boolean ) {
+	var container = new UI.Panel();
 
-		editor.config.setKey( 'ui/sidebar/history/collapsed', boolean );
-
-	} );
-
-	container.addStatic( new UI.Text( 'HISTORY' ) );
+	container.add( new UI.Text( 'HISTORY' ) );
 
 	// Checkbox 'Save History'
 
@@ -54,9 +48,9 @@ Sidebar.History = function ( editor ) {
 
 	} );
 
-	container.addStatic( saveHistorySpan );
+	container.add( saveHistorySpan );
 
-	container.add( new UI.Break() );
+	container.add( new UI.Break(), new UI.Break() );
 
 	var ignoreObjectSelectedSignal = false;