ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

comfy menu goes under some elements

Open cubiq opened this issue 2 years ago • 3 comments

I noticed that the comfy menu goes under certain nodes (specifically text area of primitives).

I believe all is needed is to set the z-index of the .comfy-menu element to some large number (eg: 9999).

cubiq avatar Jul 02 '23 14:07 cubiq

It's a problem caused by confliction of litegraph object and text area control.

Litegraph's objects are not html element. I heard that someone is trying to fix it.

ps. Oh, it could be my mistake. Since the dialogue is different, the menu could also be different.

ltdrdata avatar Jul 02 '23 21:07 ltdrdata

you have a better understanding of how it works :)

I tried this dirty trick by setting the z-index to 9999 here https://github.com/comfyanonymous/ComfyUI/blob/dc9d1f31c853503f238a2d6eacd0e4c68d9e9e42/web/style.css#L91C15-L91C15

That seems to do the trick even though it doesn't actually "fix" the problem of the text area controls systemwise that has to be done on the litegraph level I guess.

cubiq avatar Jul 03 '23 06:07 cubiq

you have a better understanding of how it works :)

I tried this dirty trick by setting the z-index to 9999 here https://github.com/comfyanonymous/ComfyUI/blob/dc9d1f31c853503f238a2d6eacd0e4c68d9e9e42/web/style.css#L91C15-L91C15

That seems to do the trick even though it doesn't actually "fix" the problem of the text area controls systemwise that has to be done on the litegraph level I guess.

It was my mistake. I got confused due to an issue between the text area and the node.

ltdrdata avatar Jul 03 '23 06:07 ltdrdata