copy parent background color when a sibling or a child is created

This commit is contained in:
Claudio Barril 2014-08-25 23:58:13 -03:00
parent c282a80b5d
commit 43790c1b9a

View File

@ -506,6 +506,11 @@ mindplot.Designer = new Class({
if(borderColor){ if(borderColor){
targetModel.setBorderColor(borderColor) targetModel.setBorderColor(borderColor)
} }
var backgroundColor = sourceModel.getBackgroundColor();
if(backgroundColor){
targetModel.setBackgroundColor(backgroundColor)
}
}, },
_createChildModel:function (topic, mousePos) { _createChildModel:function (topic, mousePos) {