diff options
author | Nivesh Rajbhandari | 2012-03-27 10:50:06 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-27 10:50:06 -0700 |
commit | b1eb3f5cc37f6e58e765f24221c3f0445a3ee75a (patch) | |
tree | e243f3b27b5281036be5c98450fefbf485054348 | |
parent | 62438ba52de51bb8ae20de07ec2f4dad55b9a929 (diff) | |
download | ninja-b1eb3f5cc37f6e58e765f24221c3f0445a3ee75a.tar.gz |
Check for Viewport case in StageController styles lookup.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/controllers/elements/stage-controller.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/controllers/elements/stage-controller.js b/js/controllers/elements/stage-controller.js index f2c8fa2d..dc916b1a 100755 --- a/js/controllers/elements/stage-controller.js +++ b/js/controllers/elements/stage-controller.js | |||
@@ -84,7 +84,11 @@ exports.StageController = Montage.create(ElementController, { | |||
84 | case "width": | 84 | case "width": |
85 | return el.elementModel.stageDimension.style.getProperty(p); | 85 | return el.elementModel.stageDimension.style.getProperty(p); |
86 | case "-webkit-transform-style": | 86 | case "-webkit-transform-style": |
87 | return el.elementModel.stageView.style.getProperty(p); | 87 | if(el.id === "Viewport") { |
88 | return this.application.ninja.stylesController.getElementStyle(el, p, false, true); | ||
89 | } else { | ||
90 | return el.elementModel.stageView.style.getProperty(p); | ||
91 | } | ||
88 | default: | 92 | default: |
89 | return ElementController.getProperty(el, p, false, true); | 93 | return ElementController.getProperty(el, p, false, true); |
90 | //console.log("Undefined Stage property ", p); | 94 | //console.log("Undefined Stage property ", p); |