diff options
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index a6e7c24f..82c4d652 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -156,8 +156,7 @@ exports.Stage = Montage.create(Component, { | |||
156 | }, | 156 | }, |
157 | 157 | ||
158 | _currentDocument: { | 158 | _currentDocument: { |
159 | value : null, | 159 | value : null |
160 | enumerable : false | ||
161 | }, | 160 | }, |
162 | 161 | ||
163 | currentDocument : { | 162 | currentDocument : { |
@@ -176,7 +175,6 @@ exports.Stage = Montage.create(Component, { | |||
176 | this.hideCanvas(false); | 175 | this.hideCanvas(false); |
177 | } | 176 | } |
178 | 177 | ||
179 | //console.log("Stage - set current document with value of " + value); | ||
180 | this._currentDocument = value; | 178 | this._currentDocument = value; |
181 | 179 | ||
182 | if(this._currentDocument.currentView === "design") { | 180 | if(this._currentDocument.currentView === "design") { |
@@ -188,8 +186,7 @@ exports.Stage = Montage.create(Component, { | |||
188 | this.hideRulers(); | 186 | this.hideRulers(); |
189 | this.hideCanvas(true); | 187 | this.hideCanvas(true); |
190 | } | 188 | } |
191 | }, | 189 | } |
192 | enumerable : false | ||
193 | }, | 190 | }, |
194 | 191 | ||
195 | _userPaddingLeft: { value: 0 }, | 192 | _userPaddingLeft: { value: 0 }, |
@@ -287,8 +284,6 @@ exports.Stage = Montage.create(Component, { | |||
287 | value: function(didSwitch) { | 284 | value: function(didSwitch) { |
288 | var designView = this.application.ninja.currentDocument.model.views.design; | 285 | var designView = this.application.ninja.currentDocument.model.views.design; |
289 | 286 | ||
290 | this.hideCanvas(false); | ||
291 | |||
292 | // Recalculate the canvas sizes because of splitter resizing | 287 | // Recalculate the canvas sizes because of splitter resizing |
293 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this.element.offsetWidth - 11 ; | 288 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this.element.offsetWidth - 11 ; |
294 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this.element.offsetHeight - 11; | 289 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this.element.offsetHeight - 11; |