aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel/stage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-xjs/stage/stage.reel/stage.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index fce73882..33c4fd22 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -26,6 +26,9 @@ exports.Stage = Montage.create(Component, {
26 _canvasSelectionPrefs: { value: { "thickness" : 1.0, "color" : "#46a1ff" } }, 26 _canvasSelectionPrefs: { value: { "thickness" : 1.0, "color" : "#46a1ff" } },
27 _canvasDrawingPrefs: { value: { "thickness" : 1.0, "color" : "#000" } }, 27 _canvasDrawingPrefs: { value: { "thickness" : 1.0, "color" : "#000" } },
28 drawingContextPreferences: { get: function() { return this._canvasDrawingPrefs; } }, 28 drawingContextPreferences: { get: function() { return this._canvasDrawingPrefs; } },
29 bindingView: {
30 value: null
31 },
29 32
30 _iframeContainer: { 33 _iframeContainer: {
31 value: null, 34 value: null,
@@ -305,9 +308,8 @@ exports.Stage = Montage.create(Component, {
305 value: function() { 308 value: function() {
306 if(this.resizeCanvases) { 309 if(this.resizeCanvases) {
307 // TODO GET THE SCROLL SIZE FROM THE CSS -- 11 px 310 // TODO GET THE SCROLL SIZE FROM THE CSS -- 11 px
308 this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.element.offsetWidth - 11 ; 311 this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.bindingView.width = this.element.offsetWidth - 11;
309 this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.element.offsetHeight - 11;// - 26 - 26; 312 this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.bindingView.height = this.element.offsetHeight - 11;// - 26 - 26;
310
311 // Hack for now until a full component 313 // Hack for now until a full component
312 this.layout.draw(); 314 this.layout.draw();
313 if(this.currentDocument && (this.currentDocument.currentView === "design")) { 315 if(this.currentDocument && (this.currentDocument.currentView === "design")) {
@@ -386,8 +388,8 @@ exports.Stage = Montage.create(Component, {
386 } 388 }
387 389
388 // Recalculate the canvas sizes because of splitter resizing 390 // Recalculate the canvas sizes because of splitter resizing
389 this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.element.offsetWidth - 11 ; 391 this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this._gridCanvas.width = this.bindingView.width = this.element.offsetWidth - 11 ;
390 this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.element.offsetHeight - 11; 392 this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this._gridCanvas.height = this.bindingView.height = this.element.offsetHeight - 11;
391 393
392 designView.iframe.contentWindow.addEventListener("scroll", this, false); 394 designView.iframe.contentWindow.addEventListener("scroll", this, false);
393 395