mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +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();
|
||||
}
|
||||
widthWidget.callback = () => {
|
||||
w = widthWidget.value
|
||||
vis.width(w)
|
||||
context.setSize([w + 45, context.size[1]]);
|
||||
w = widthWidget.value;
|
||||
if (w > 256) {
|
||||
|
||||
context.setSize([w + 45, context.size[1]]);
|
||||
}
|
||||
vis.width(w);
|
||||
|
||||
updatePath();
|
||||
}
|
||||
}
|
||||
heightWidget.callback = () => {
|
||||
h = heightWidget.value
|
||||
vis.height(h)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user