Fix subgraph / cluster node width based off of label

This commit is contained in:
yari-dewalt
2024-10-21 16:09:55 -07:00
parent be3da0b39d
commit fd6b875f87
2 changed files with 2 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ export const render = async (
const clusterNode = JSON.parse(JSON.stringify(node));
clusterNode.x = node.offset.posX + node.width / 2;
clusterNode.y = node.offset.posY + node.height / 2;
clusterNode.width = Math.max(clusterNode.width, node.labelData.width);
await insertCluster(subgraphEl, clusterNode);
log.debug('Id (UIO)= ', node.id, node.width, node.shape, node.labels);