From 08101852de934ed674807b26ab89f432daa4d6fe Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 14 Feb 2012 12:01:57 -0800 Subject: Fixing the live preview background issue. Signed-off-by: Valerio Virgillito --- js/controllers/elements/stage-controller.js | 4 ++++ js/ninja.reel/ninja.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/controllers/elements/stage-controller.js b/js/controllers/elements/stage-controller.js index af7c4858..a8546662 100644 --- a/js/controllers/elements/stage-controller.js +++ b/js/controllers/elements/stage-controller.js @@ -92,7 +92,11 @@ exports.StageController = Montage.create(ElementController, { setProperty: { value: function(el, p, value) { + switch(p) { + case "body-background": + el.elementModel.body.style.setProperty("background", value); + break; case "background": el.elementModel.stageBackground.style.setProperty(p, value); break; diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 469d38f7..e9c79230 100644 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -186,7 +186,7 @@ exports.Ninja = Montage.create(Component, { transitionStopRule = "*" } - this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "background", background); + this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "body-background", background); this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "overflow", overflow); this.currentDocument.documentRoot.elementModel.controller.changeSelector(this.currentDocument.documentRoot, "transitionStopRule", transitionStopRule); -- cgit v1.2.3