-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: setSizeForImage should be called when image get attached? #2417
Comments
This doesn't seem to change things. Can you elaborate? |
Sorry, I haven't tried this "solution", chrome devtool does not allow me to hot-reload this change. In my case I am adding a multiline STRING widget, the textarea element takes the whole remaining space and image will not show unless I manually resize the node. |
The multiline string input and the image display function are unforunately not designed to work together like that. This could definitely be added as a feature request, though. |
I see, it's an issue between |
Frontend Version
v1.7.14
Expected Behavior
IMAGEUPLOAD get resized correctly when extension add more widget.
Actual Behavior
IMAGEUPLOAD not expanded for image.
Steps to Reproduce
extension's onNodeCreated add custom widget after original onNodeCreated.
after node setup, image get default selected but image element not shown in node.
Debug Logs
***
Browser Logs
console.trace()
this.imgs
getImageTop(this)
Setting JSON
What browsers do you use to access the UI ?
Google Chrome
Other
ComfyUI_frontend/src/scripts/widgets.ts
Lines 590 to 605 in 628faca
In IMAGEUPLOAD, it's calling
setSizeForImage
at the end, but img element is attached tonode.imgs
inonload
callback.When
node.imgs
is empty(undefined),getImageTop
returns NaN and actually size not get updated.ComfyUI_frontend/src/services/litegraphService.ts
Lines 394 to 397 in 628faca
so setSizeForImage should be called in
onload
callback.┆Issue is synchronized with this Notion page by Unito
The text was updated successfully, but these errors were encountered: