aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-01 06:47:50 -0700
committerNivesh Rajbhandari2012-06-01 06:47:50 -0700
commitb7f048624c07a1186cca080bf4c9a87af7d53f35 (patch)
tree38f9f63d409f3e4c8769fa8a4da8f41097e7e1fc /js/stage
parent294baf576986adb139406e516d8461070fdfd695 (diff)
downloadninja-b7f048624c07a1186cca080bf4c9a87af7d53f35.tar.gz
SnapManager.setupDragPlaneFromPlane must happen after StylesController has finished initializeRootStyles.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage.reel/stage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 087606d0..5a1d7f78 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -1102,7 +1102,9 @@ exports.Stage = Montage.create(Component, {
1102 1102
1103 this.snapManager._isCacheInvalid = true; 1103 this.snapManager._isCacheInvalid = true;
1104 this.snapManager.currentStage = this.application.ninja.currentDocument.model.documentRoot; 1104 this.snapManager.currentStage = this.application.ninja.currentDocument.model.documentRoot;
1105 this.snapManager.setupDragPlaneFromPlane (workingPlane); 1105 //TODO - StylesController needs to initialize the stage's styles prior to calling this.
1106 // So, moving this into styles-controller.initializeRootStyles code.
1107// this.snapManager.setupDragPlaneFromPlane (workingPlane);
1106 1108
1107 this.drawUtils.initializeFromDocument(); 1109 this.drawUtils.initializeFromDocument();
1108 } 1110 }