Fix node size

This commit is contained in:
Will Miao
2025-03-03 05:32:54 +08:00
parent 6db4ff3bd6
commit 1281ae29cb
4 changed files with 28 additions and 15 deletions

View File

@@ -53,9 +53,6 @@ app.registerExtension({
if (typeof message === 'string') {
// Get existing tags to preserve active states
const existingTags = node.tagWidget.value || [];
const tempWidget = node.tagWidget;
const originalHeight = tempWidget.options.getHeight();
// Create a map of existing tags and their active states
const existingTagMap = {};
@@ -75,8 +72,6 @@ app.registerExtension({
}));
node.tagWidget.value = tagArray;
node.size[1] = node.size[1] + (tempWidget.options.getHeight() - originalHeight);
node.setDirtyCanvas(true, true);
}
}
},