#2072 fix for composite states

This commit is contained in:
Knut Sveidqvist 2021-05-17 18:49:53 +02:00
parent d1180a5c69
commit cea1441eeb

View File

@ -146,6 +146,8 @@ const roundedWithTitle = (parent, node) => {
const width = node.width <= bbox.width + node.padding ? bbox.width + node.padding : node.width;
if (node.width <= bbox.width + node.padding) {
node.diff = (bbox.width + node.padding - node.width) / 2;
} else {
node.diff = -node.padding / 2;
}
// center the rect around its coordinate