egui
egui copied to clipboard
Add ability to disable hover tooltip on TextWrapping
Is your feature request related to a problem? Please describe. I'm trying to show a single row of text with whitespace stripped, but then show the original text on hover. Currently, it seems like I can't disable the stripped version from having a tooltip. Also what I'd really want is just the ability to provide custom ui for the tooltip when the text gets clipped.
response = ui.label("test");
Receive a response in the form.
Depending on the condition, check if you get the desired result with response.enable = false
.
No, the tooltip still shows up from Layout job.
Are you talking about truncated labels, i.e. labels that replace some text with …
? If so, the fix should go in here:
https://github.com/emilk/egui/blob/631b2277288a25b994b2bce191cf6a35eb497160/crates/egui/src/widgets/label.rs#L222-L225
I suggest you add a setting for this in Visuals
Yes, thank you for the code pointer!