egui/tests/test_size_pass
Emil Ernerfeldt 3805584238
Fix bug causing tooltips with dynamic content to shrink (#5168)
Affects `.on_hover_text(…)` with dynamic content (i.e. content that
changes over time).

* Closes https://github.com/emilk/egui/issues/5167

`.on_hover_ui` with dynamic content can still hit the shrinking problem.
The general solution depends on solving
https://github.com/emilk/egui/issues/5138 but a work-around is to add
this to your tooltips:

```diff
 response.on_hover_ui(|ui| {
+    ui.set_max_width(ui.spacing().tooltip_width);
     // …
 });
```
2024-09-25 18:50:14 +02:00
..
src Fix bug causing tooltips with dynamic content to shrink (#5168) 2024-09-25 18:50:14 +02:00
Cargo.toml Add `Ui::is_sizing_pass` for better size estimation of `Area`s, and menus in particular (#4557) 2024-05-29 10:27:04 +02:00