mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
0.59
This commit is contained in:
@@ -43,6 +43,7 @@ app.registerExtension({
|
||||
};
|
||||
|
||||
const updateInputs = () => {
|
||||
const initialWidth = node.size[0];
|
||||
const numInputsWidget = node.widgets.find(
|
||||
(w) => w.name === "number_of_inputs"
|
||||
);
|
||||
@@ -82,6 +83,7 @@ app.registerExtension({
|
||||
updateInputButtons(numInputs);
|
||||
|
||||
node.setSize(node.computeSize());
|
||||
node.size[0] = initialWidth; // Keep width fixed
|
||||
};
|
||||
|
||||
// Move number_of_inputs to the top initially
|
||||
|
||||
Reference in New Issue
Block a user