1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Don't hover things under tooltips

This commit is contained in:
Emil Ernerfeldt
2024-06-10 13:22:35 +02:00
parent e2a127a381
commit ee22145779
4 changed files with 13 additions and 13 deletions

View File

@@ -81,5 +81,12 @@ impl super::View for Tooltips {
.on_hover_ui(tooltip_ui)
.on_disabled_hover_ui(disabled_tooltip_ui);
});
ui.separator(); // ---------------------------------------------------------
ui.label("This widget has a tooltip that fills the screen")
.on_hover_ui(|ui| {
ui.allocate_exact_size(ui.ctx().screen_rect().size() * 0.8, egui::Sense::hover());
});
}
}