From 0f89fb720b576a54e744a9633198269a5710c3d2 Mon Sep 17 00:00:00 2001 From: Dario Del Piano Date: Tue, 17 Dec 2019 10:59:12 +0000 Subject: [PATCH] fixes related to color picker color change after buttonbar has been re-aligned --- components/interface/VFBTree/VFBTree.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/interface/VFBTree/VFBTree.js b/components/interface/VFBTree/VFBTree.js index 720889bb5..27e3294dc 100644 --- a/components/interface/VFBTree/VFBTree.js +++ b/components/interface/VFBTree/VFBTree.js @@ -476,6 +476,10 @@ export default class VFBTree extends React.Component { GEPPETTO.on(GEPPETTO.Events.Instances_created, function () { that.setState({ displayColorPicker: false }); }); + + GEPPETTO.on(GEPPETTO.Events.Color_set, function (instance) { + that.forceUpdate(); + }); } render () {