Comparing version 0.0.5 to 0.0.6
@@ -17,2 +17,3 @@ /*----------------------------------------------------------------------------- | ||
var phosphor_dockpanel_1 = require('phosphor-dockpanel'); | ||
var phosphor_panel_1 = require('phosphor-panel'); | ||
var phosphor_splitpanel_1 = require('phosphor-splitpanel'); | ||
@@ -52,3 +53,3 @@ var phosphor_stackedpanel_1 = require('phosphor-stackedpanel'); | ||
this.addClass(APP_SHELL_CLASS); | ||
var topPanel = new phosphor_widget_1.Panel(); | ||
var topPanel = new phosphor_panel_1.Panel(); | ||
var hboxPanel = new phosphor_boxpanel_1.BoxPanel(); | ||
@@ -73,2 +74,3 @@ var dockPanel = new phosphor_dockpanel_1.DockPanel(); | ||
dockPanel.id = 'p-main-dock-panel'; | ||
dockPanel.spacing = 8; // TODO make this configurable? | ||
hsplitPanel.orientation = phosphor_splitpanel_1.SplitPanel.Horizontal; | ||
@@ -225,3 +227,3 @@ hsplitPanel.spacing = 1; // TODO make this configurable? | ||
this._sideBar.setHidden(this._sideBar.titleCount() === 0); | ||
this._stackedPanel.setHidden(this._stackedPanel.currentWidget === null); | ||
this._stackedPanel.setHidden(this._sideBar.currentTitle === null); | ||
}; | ||
@@ -232,3 +234,8 @@ /** | ||
SideBarHandler.prototype._onCurrentChanged = function (sender, args) { | ||
this._stackedPanel.currentWidget = this._findTitleWidget(args.newValue); | ||
var oldWidget = this._findTitleWidget(args.oldValue); | ||
var newWidget = this._findTitleWidget(args.newValue); | ||
if (oldWidget) | ||
oldWidget.hide(); | ||
if (newWidget) | ||
newWidget.show(); | ||
this._refreshVisibility(); | ||
@@ -235,0 +242,0 @@ }; |
{ | ||
"name": "phosphide", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Slightly opinionated scaffolding for building plugin-based IDE-style applications.", | ||
@@ -9,14 +9,15 @@ "main": "lib/index.js", | ||
"phosphor-arrays": "^1.0.6", | ||
"phosphor-boxpanel": "^1.0.0-beta.3", | ||
"phosphor-boxpanel": "^1.0.0-rc.0", | ||
"phosphor-command": "^0.5.0", | ||
"phosphor-di": "^0.9.0", | ||
"phosphor-disposable": "^1.0.5", | ||
"phosphor-dockpanel": "^0.9.4", | ||
"phosphor-dockpanel": "^0.9.5", | ||
"phosphor-domutil": "^1.2.0", | ||
"phosphor-messaging": "^1.0.6", | ||
"phosphor-panel": "^1.0.0-rc.1", | ||
"phosphor-properties": "^2.0.0", | ||
"phosphor-signaling": "^1.2.0", | ||
"phosphor-splitpanel": "^1.0.0-beta.2", | ||
"phosphor-stackedpanel": "^1.0.0-beta.5", | ||
"phosphor-widget": "^1.0.0-beta.6" | ||
"phosphor-splitpanel": "^1.0.0-rc.1", | ||
"phosphor-stackedpanel": "^1.0.0-rc.0", | ||
"phosphor-widget": "^1.0.0-rc.0" | ||
}, | ||
@@ -23,0 +24,0 @@ "devDependencies": { |
52263
1360
14