aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-12 16:00:44 -0700
committerValerio Virgillito2012-04-12 16:00:44 -0700
commit4b900ea5cd6bb77eb30cec8c03b9ec9fa662c1e9 (patch)
tree18a1f0e3679c0eb993a9dedb537035d3861f49ac /js/controllers/elements
parent9d1c919a4865ab1a2b0b0b9fc893a54b145c82c0 (diff)
parent77c6ab76ffe9fc380ed6fdb7b29ccd40acaee74d (diff)
downloadninja-4b900ea5cd6bb77eb30cec8c03b9ec9fa662c1e9.tar.gz
Merge pull request #162 from mqg734/BoundsCalculation
offsets should be calculated on offsetParent instead of parentElement.
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-xjs/controllers/elements/element-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 7ab6664f..2ac84452 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -264,6 +264,10 @@ exports.ElementController = Montage.create(Component, {
264 "-webkit-transform", 264 "-webkit-transform",
265 "matrix3d(" + MathUtils.scientificToDecimal(mat, 5) + ")"); 265 "matrix3d(" + MathUtils.scientificToDecimal(mat, 5) + ")");
266 266
267 this.application.ninja.stylesController.setElementStyle(el,
268 "-webkit-transform-style",
269 "preserve-3d");
270
267 // TODO - We don't support perspective on individual elements yet 271 // TODO - We don't support perspective on individual elements yet
268// this.application.ninja.stylesController.setElementStyle(el, 272// this.application.ninja.stylesController.setElementStyle(el,
269// "-webkit-perspective", 273// "-webkit-perspective",