egui/crates
Valeriy V. Vorotyntsev 4c3b380889
Fix the "ever-growing height" problem of Strip and Table demos (#3122)
* Fix the "ever-growing height" problem of Strip and Table Demos

Problem
-------

The height of "Table Demo" or "Strip Demo" floating window grows
when the demo app is interacted with. If 'Continuous' mode is enabled
in 'Backend' settings, the window grows irrespectively of user interaction.

Observations
------------

I noticed that [`area_content_ui.min_rect().max.y`][1] is increasing
monotonically with speed 0.5 px/frame.

I also noticed that commenting out `ui.add(crate::egui_github_link_file!());`
[statement][2] in `table_demo.rs` makes the problem disappear.

The "Fix"
---------

I added 0.5 to the height of the row with GitHub link.
This solved the problem.

Closes #3029.

Warning
-------

I failed to find the root cause of the problem.
I don't understand why this change makes the problem disappear.

[1]: 9478e50d01/crates/egui/src/containers/window.rs (L403)
[2]: 9478e50d01/crates/egui_demo_lib/src/demo/table_demo.rs (L114)

* Document `Rect::size`

Other changes:

- `area.rs`: Use existing API.
- `table_demo.rs`: Remove unnecessary call.
2023-08-10 12:35:40 +02:00
..
ecolor Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
eframe fix the title not being used when app_id is not set (#3107) 2023-08-10 09:50:15 +02:00
egui Fix the "ever-growing height" problem of Strip and Table demos (#3122) 2023-08-10 12:35:40 +02:00
egui-wgpu fix depth texture init with multisampling (#3207) 2023-08-09 20:59:36 +02:00
egui-winit Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
egui_demo_app Release 0.22.0 - A plethora of small improvements 2023-05-23 19:58:04 +02:00
egui_demo_lib Fix the "ever-growing height" problem of Strip and Table demos (#3122) 2023-08-10 12:35:40 +02:00
egui_extras Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
egui_glium Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
egui_glow Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Fix the "ever-growing height" problem of Strip and Table demos (#3122) 2023-08-10 12:35:40 +02:00
epaint Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00