aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 11:15:36 -0700
committerValerio Virgillito2012-06-01 11:15:36 -0700
commit62ac633975d6c461ec478887e574f6b155511a23 (patch)
treea849eef914eb606d6ca7ce08dfcde86ab5c99786 /js/controllers
parent2085c783cf3a75d2b8f0370a6f54f62dd513161c (diff)
parentf457f110e560d50cb12f4cd3c4859bfc42a0ef3d (diff)
downloadninja-62ac633975d6c461ec478887e574f6b155511a23.tar.gz
Merge branch 'document-bindings-fix' of github.com:mencio/ninja-internal into document-bindings-fix
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/styles-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 8d56370d..863348cd 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -160,6 +160,10 @@ var stylesController = exports.StylesController = Montage.create(Component, {
160 this.setStyles(rule, styles); 160 this.setStyles(rule, styles);
161 this.addClass(this.currentDocument.model.documentRoot, "ninja-body"); 161 this.addClass(this.currentDocument.model.documentRoot, "ninja-body");
162 } 162 }
163
164 //TODO - Temporarily moving this here so we guarantee the StylesController has a chance
165 // to initialize the stage's styles prior to doing any styles lookup.
166 this.application.ninja.stage.snapManager.setupDragPlaneFromPlane (workingPlane);
163 } 167 }
164 }, 168 },
165 /* ----------------- Rule methods ----------------- */ 169 /* ----------------- Rule methods ----------------- */
@@ -1185,6 +1189,7 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1185 1189
1186 getMatrixFromElement : { 1190 getMatrixFromElement : {
1187 value: function(element, isStage) { 1191 value: function(element, isStage) {
1192 isStage = false;
1188 var xformStr = this.getElementStyle(element, "-webkit-transform", true, isStage), 1193 var xformStr = this.getElementStyle(element, "-webkit-transform", true, isStage),
1189 mat; 1194 mat;
1190 1195
@@ -1218,6 +1223,7 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1218 1223
1219 getPerspectiveDistFromElement : { 1224 getPerspectiveDistFromElement : {
1220 value: function(element, isStage) { 1225 value: function(element, isStage) {
1226 isStage = false;
1221 var xformStr = this.getElementStyle(element, "-webkit-perspective", false, isStage), 1227 var xformStr = this.getElementStyle(element, "-webkit-perspective", false, isStage),
1222 dist; 1228 dist;
1223 1229