瀏覽代碼

Switch to PanelLayout for ConsoleContent.

Afshin Darian 8 年之前
父節點
當前提交
3e0c2bb419
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/console/content.ts

+ 3 - 2
src/console/content.ts

@@ -106,14 +106,15 @@ class ConsoleContent extends Widget {
     this.addClass(CONSOLE_CLASS);
 
     // Create the panels that hold the content and input.
+    let layout = this.layout = new PanelLayout();
     this._content = new Panel();
     this._input = new Panel();
     this._content.addClass(CONTENT_CLASS);
     this._input.addClass(INPUT_CLASS);
 
     // Insert the content and input panes into the widget.
-    this.node.appendChild(this._content.node);
-    this.node.appendChild(this._input.node);
+    layout.addWidget(this._content);
+    layout.addWidget(this._input);
 
     this._renderer = options.renderer;
     this._rendermime = options.rendermime;