diff options
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 30ee1e40..63339c57 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -21,6 +21,9 @@ exports.Stage = Montage.create(Component, { | |||
21 | _canvasSelectionPrefs: { value: { "thickness" : 1.0, "color" : "#46a1ff" } }, | 21 | _canvasSelectionPrefs: { value: { "thickness" : 1.0, "color" : "#46a1ff" } }, |
22 | _canvasDrawingPrefs: { value: { "thickness" : 1.0, "color" : "#000" } }, | 22 | _canvasDrawingPrefs: { value: { "thickness" : 1.0, "color" : "#000" } }, |
23 | drawingContextPreferences: { get: function() { return this._canvasDrawingPrefs; } }, | 23 | drawingContextPreferences: { get: function() { return this._canvasDrawingPrefs; } }, |
24 | bindingView: { | ||
25 | value: null | ||
26 | }, | ||
24 | 27 | ||
25 | _iframeContainer: { value: null }, | 28 | _iframeContainer: { value: null }, |
26 | 29 | ||
@@ -237,9 +240,8 @@ exports.Stage = Montage.create(Component, { | |||
237 | value: function() { | 240 | value: function() { |
238 | if(this.resizeCanvases) { | 241 | if(this.resizeCanvases) { |
239 | // TODO GET THE SCROLL SIZE FROM THE CSS -- 11 px | 242 | // TODO GET THE SCROLL SIZE FROM THE CSS -- 11 px |
240 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.element.offsetWidth - 11 ; | 243 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.bindingView.width = this.element.offsetWidth - 11; |
241 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.element.offsetHeight - 11;// - 26 - 26; | 244 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.bindingView.height = this.element.offsetHeight - 11;// - 26 - 26; |
242 | |||
243 | // Hack for now until a full component | 245 | // Hack for now until a full component |
244 | this.layout.draw(); | 246 | this.layout.draw(); |
245 | if(this.currentDocument && (this.currentDocument.currentView === "design")) { | 247 | if(this.currentDocument && (this.currentDocument.currentView === "design")) { |
@@ -314,8 +316,8 @@ exports.Stage = Montage.create(Component, { | |||
314 | } | 316 | } |
315 | 317 | ||
316 | // Recalculate the canvas sizes because of splitter resizing | 318 | // Recalculate the canvas sizes because of splitter resizing |
317 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.element.offsetWidth - 11 ; | 319 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.bindingView.width = this.element.offsetWidth - 11 ; |
318 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.element.offsetHeight - 11; | 320 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.bindingView.height = this.element.offsetHeight - 11; |
319 | 321 | ||
320 | designView.iframe.contentWindow.addEventListener("scroll", this, false); | 322 | designView.iframe.contentWindow.addEventListener("scroll", this, false); |
321 | 323 | ||