iced icon indicating copy to clipboard operation
iced copied to clipboard

Tooltip goes behind container

Open yusdacra opened this issue 3 years ago • 2 comments

https://user-images.githubusercontent.com/19897088/109094767-98747480-772b-11eb-9961-de154360ba0e.mp4

I assume this has something to do with the layer changes done. There should be a way to control where it is rendered, or Tooltips should always be rendered on top of everything.

yusdacra avatar Feb 25 '21 02:02 yusdacra

https://github.com/yusdacra/iced/commit/f1ffa8fda0738b0e3b734d1c256b57281ee33693 tried messing around with layers here. Added an on_top boolean to Primitive::Clip to make it so that layer is rendered on top of other layers which don't have on_top == true. Even after doing so the tooltip still gets rendered like in the video. I made sure that the tooltip layer is above everything, yet it gets rendered under it.

yusdacra avatar Feb 25 '21 17:02 yusdacra

Definitely a slip-up on my side.

I think we could create a Tooltip variant in Primitive and have a dedicated tooltip layer or something similar. I'll play with the idea.

hecrj avatar Feb 27 '21 02:02 hecrj

Fixed by #1692.

hecrj avatar Feb 11 '24 03:02 hecrj