Fix resizing causing node to shrink

This commit is contained in:
pythongosssss
2023-09-05 17:30:40 +01:00
parent 332e868ab9
commit 7c9adc1f90
+9 -1
View File
@@ -26,7 +26,15 @@ app.registerExtension({
}
requestAnimationFrame(() => {
this.onResize?.(this.computeSize());
const sz = this.computeSize();
if (sz[0] < this.size[0]) {
sz[0] = this.size[0];
}
if (sz[1] < this.size[1]) {
sz[1] = this.size[1];
}
this.onResize?.(sz);
app.graph.setDirtyCanvas(true, false);
});
}