slint icon indicating copy to clipboard operation
slint copied to clipboard

Error message in SlintPad cut off

Open Enyium opened this issue 1 year ago • 1 comments

Consider this SlintPad example. Hover over NonexistentComponent, which has wavy red underlining. When I do this, the error message tooltip is cut off like this (in Firefox):

cutoff_error_msg_slintpad

When the tooltip can't be displayed at a higher position in the z-order, its x-y-position and size should be arranged according to its container.

Enyium avatar Aug 26 '24 13:08 Enyium

Not sure we can do much there: We use the text editor from VSCode for this. Maybe it will go away when we update next:-)

Unfortunately it's really tricky to update that component.

hunger avatar Aug 27 '24 09:08 hunger

This persists after the latest Monaco update :-/

I tired to see what actually does the clipping, but so far without any luck. It might be the widget that embeds the monaco editor after all. I tried to remove all contains: strict in the styling, but that did not change anything :-/ There is no clip or clip-path set anywhere AFAICT either.

hunger avatar Sep 26 '24 11:09 hunger

Upstream issue: https://github.com/microsoft/monaco-editor/issues/4580

ogoffart avatar Jun 25 '25 10:06 ogoffart