diff options
author | Nivesh Rajbhandari | 2012-03-21 12:02:36 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-21 12:02:36 -0700 |
commit | 52fac825174d16e3ff6875fc497d3f3cfaf4812c (patch) | |
tree | 16ca0fb16a1b53822cdc02db4c2b878fd6ac3e96 /js/controllers/elements/stage-controller.js | |
parent | 862b0c33de7cdc8865db274d37744058256936e0 (diff) | |
download | ninja-52fac825174d16e3ff6875fc497d3f3cfaf4812c.tar.gz |
Get matrix and perspective distance from styles controller.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements/stage-controller.js')
-rwxr-xr-x | js/controllers/elements/stage-controller.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/controllers/elements/stage-controller.js b/js/controllers/elements/stage-controller.js index 97ea3aa5..2734e226 100755 --- a/js/controllers/elements/stage-controller.js +++ b/js/controllers/elements/stage-controller.js | |||
@@ -143,11 +143,10 @@ exports.StageController = Montage.create(ElementController, { | |||
143 | 143 | ||
144 | if (el) | 144 | if (el) |
145 | { | 145 | { |
146 | var xformStr = this.application.ninja.elementMediator.getProperty(el, "-webkit-transform"); | 146 | mat = this.application.ninja.stylesController.getMatrixFromElement(el, true); |
147 | if (xformStr) | 147 | if (!mat) { |
148 | mat = this.transformStringToMat( xformStr ); | ||
149 | if (!mat) | ||
150 | mat = Matrix.I(4); | 148 | mat = Matrix.I(4); |
149 | } | ||
151 | 150 | ||
152 | var zoom = this.application.ninja.elementMediator.getProperty(el, "zoom"); | 151 | var zoom = this.application.ninja.elementMediator.getProperty(el, "zoom"); |
153 | if (zoom) | 152 | if (zoom) |