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 ++++ 1 file changed, 4 insertions(+) (limited to 'js/controllers/elements') 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; -- cgit v1.2.3