aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-10 12:01:16 -0700
committerNivesh Rajbhandari2012-05-10 12:01:16 -0700
commit2088ff54c96af4bd5c96075b74939b50c56f5f24 (patch)
tree1248de2aa359b76f380eb4d1fadd999b89fa8fca /js/controllers/elements
parentfb71f5715a288b59d6b151c11a293e179d2c9ace (diff)
downloadninja-2088ff54c96af4bd5c96075b74939b50c56f5f24.tar.gz
New stage template should not distinguish between user and template body styles.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-xjs/controllers/elements/body-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/elements/body-controller.js b/js/controllers/elements/body-controller.js
index 943594f2..5c23dcf7 100755
--- a/js/controllers/elements/body-controller.js
+++ b/js/controllers/elements/body-controller.js
@@ -13,7 +13,7 @@ exports.BodyController = Montage.create(ElementController, {
13 set3DProperties: { 13 set3DProperties: {
14 value: function(el, props, update3DModel) { 14 value: function(el, props, update3DModel) {
15 var dist = props["dist"], mat = props["mat"]; 15 var dist = props["dist"], mat = props["mat"];
16 this.application.ninja.stylesController.setElementStyle(el, "-webkit-transform", "perspective(" + dist + ") " + "matrix3d(" + MathUtils.scientificToDecimal(mat, 5) + ")", true); 16 this.application.ninja.stylesController.setElementStyle(el, "-webkit-transform", "perspective(" + dist + ") " + "matrix3d(" + MathUtils.scientificToDecimal(mat, 5) + ")");
17 17
18 el.elementModel.props3D.matrix3d = mat; 18 el.elementModel.props3D.matrix3d = mat;
19 el.elementModel.props3D.perspectiveDist = dist; 19 el.elementModel.props3D.perspectiveDist = dist;
@@ -49,13 +49,13 @@ exports.BodyController = Montage.create(ElementController, {
49 switch(p) { 49 switch(p) {
50 case "body-background": 50 case "body-background":
51 case "background": 51 case "background":
52 this.application.ninja.stylesController.setElementStyle(el, "background-color", value, true); 52 this.application.ninja.stylesController.setElementStyle(el, "background-color", value);
53 break; 53 break;
54 case "overflow": 54 case "overflow":
55 case "width": 55 case "width":
56 case "height": 56 case "height":
57 case "-webkit-transform-style": 57 case "-webkit-transform-style":
58 this.application.ninja.stylesController.setElementStyle(el, p, value, true); 58 this.application.ninja.stylesController.setElementStyle(el, p, value);
59 this.application.ninja.stage.updatedStage = true; 59 this.application.ninja.stage.updatedStage = true;
60 break; 60 break;
61 default: 61 default: