From 43790c1b9a9d2c878a0938a12ca963fe21a87c9b Mon Sep 17 00:00:00 2001 From: Claudio Barril Date: Mon, 25 Aug 2014 23:58:13 -0300 Subject: [PATCH] copy parent background color when a sibling or a child is created --- mindplot/src/main/javascript/Designer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index a0854923..78a9fe0f 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -506,6 +506,11 @@ mindplot.Designer = new Class({ if(borderColor){ targetModel.setBorderColor(borderColor) } + + var backgroundColor = sourceModel.getBackgroundColor(); + if(backgroundColor){ + targetModel.setBackgroundColor(backgroundColor) + } }, _createChildModel:function (topic, mousePos) {