Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
ee62b4ec
"...composable_kernel_onnx.git" did not exist on "f91579aab6e224c23aceaeaa0a29d9dde83f09ed"
Commit
ee62b4ec
authored
Jun 07, 2023
by
comfyanonymous
Browse files
Merge branch 'bugfix/widget_size_conflict' of
https://github.com/ltdrdata/ComfyUI
parents
4f1d8c33
422163c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
web/scripts/app.js
web/scripts/app.js
+4
-0
web/scripts/widgets.js
web/scripts/widgets.js
+2
-2
No files found.
web/scripts/app.js
View file @
ee62b4ec
...
@@ -365,6 +365,10 @@ export class ComfyApp {
...
@@ -365,6 +365,10 @@ export class ComfyApp {
}
}
node
.
prototype
.
setSizeForImage
=
function
()
{
node
.
prototype
.
setSizeForImage
=
function
()
{
if
(
this
.
inputHeight
)
{
this
.
setSize
(
this
.
size
);
return
;
}
const
minHeight
=
getImageTop
(
this
)
+
220
;
const
minHeight
=
getImageTop
(
this
)
+
220
;
if
(
this
.
size
[
1
]
<
minHeight
)
{
if
(
this
.
size
[
1
]
<
minHeight
)
{
this
.
setSize
([
this
.
size
[
0
],
minHeight
]);
this
.
setSize
([
this
.
size
[
0
],
minHeight
]);
...
...
web/scripts/widgets.js
View file @
ee62b4ec
...
@@ -115,12 +115,12 @@ function addMultilineWidget(node, name, opts, app) {
...
@@ -115,12 +115,12 @@ function addMultilineWidget(node, name, opts, app) {
// See how large each text input can be
// See how large each text input can be
freeSpace
-=
widgetHeight
;
freeSpace
-=
widgetHeight
;
freeSpace
/=
multi
.
length
;
freeSpace
/=
multi
.
length
+
(
!!
node
.
imgs
?.
length
)
;
if
(
freeSpace
<
MIN_SIZE
)
{
if
(
freeSpace
<
MIN_SIZE
)
{
// There isnt enough space for all the widgets, increase the size of the node
// There isnt enough space for all the widgets, increase the size of the node
freeSpace
=
MIN_SIZE
;
freeSpace
=
MIN_SIZE
;
node
.
size
[
1
]
=
y
+
widgetHeight
+
freeSpace
*
multi
.
length
;
node
.
size
[
1
]
=
y
+
widgetHeight
+
freeSpace
*
(
multi
.
length
+
(
!!
node
.
imgs
?.
length
))
;
node
.
graph
.
setDirtyCanvas
(
true
);
node
.
graph
.
setDirtyCanvas
(
true
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment