diff options
author | Valerio Virgillito | 2012-03-14 10:29:18 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-14 10:29:18 -0700 |
commit | 6df430d86c289413fea48f8e2ac37def72fbde46 (patch) | |
tree | cc16f59407a85b6c91d372d25fdae2ee1dac88d1 /js/controllers | |
parent | f4373594569f77d710eea9a266fe41419c029f85 (diff) | |
parent | b4d3bf155e38e6554f05bb3cbaddd2f3bf799e90 (diff) | |
download | ninja-6df430d86c289413fea48f8e2ac37def72fbde46.tar.gz |
Merge pull request #117 from mencio/layout-fix
Layout Fixes and Canvas sized when panels are collapsed
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/selection-controller.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js index c713b6e5..154fb7f8 100755 --- a/js/controllers/selection-controller.js +++ b/js/controllers/selection-controller.js | |||
@@ -90,15 +90,11 @@ exports.SelectionController = Montage.create(Component, { | |||
90 | } | 90 | } |
91 | }, | 91 | }, |
92 | 92 | ||
93 | handleSwitchDocument: { | 93 | handleSwitchDocument: { |
94 | value: function() { | 94 | value: function() { |
95 | if(this.application.ninja.documentController.activeDocument.currentView === "design"){ | 95 | if(this.application.ninja.documentController.activeDocument.currentView === "design"){ |
96 | this._selectedItems = this.application.ninja.selectedElements.slice(0); | 96 | this._selectedItems = this.application.ninja.selectedElements.slice(0); |
97 | if(this._selectedItems.length === 0 ){ | 97 | this._isDocument = this._selectedItems.length === 0; |
98 | this._isDocument = true; | ||
99 | }else{ | ||
100 | this._isDocument = false; | ||
101 | } | ||
102 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); | 98 | NJevent("selectionChange", {"elements": this.application.ninja.selectedElements, "isDocument": this._isDocument} ); |
103 | } | 99 | } |
104 | } | 100 | } |