mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-15 15:54:38 +08:00
Don't allow SplineEditor width to be too small
This commit is contained in:
parent
bee351960d
commit
d2a44569b2
@ -390,11 +390,15 @@ function createSplineEditor(context, reset=false) {
|
|||||||
updatePath();
|
updatePath();
|
||||||
}
|
}
|
||||||
widthWidget.callback = () => {
|
widthWidget.callback = () => {
|
||||||
w = widthWidget.value
|
w = widthWidget.value;
|
||||||
vis.width(w)
|
if (w > 256) {
|
||||||
context.setSize([w + 45, context.size[1]]);
|
|
||||||
|
context.setSize([w + 45, context.size[1]]);
|
||||||
|
}
|
||||||
|
vis.width(w);
|
||||||
|
|
||||||
updatePath();
|
updatePath();
|
||||||
}
|
}
|
||||||
heightWidget.callback = () => {
|
heightWidget.callback = () => {
|
||||||
h = heightWidget.value
|
h = heightWidget.value
|
||||||
vis.height(h)
|
vis.height(h)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user