1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Release egui_extras 0.24.2 - Fix Table scrolling bug (#3691)

Includes:
* https://github.com/emilk/egui/pull/3690

---------

Co-authored-by: Antoine Beyeler <49431240+abey79@users.noreply.github.com>
This commit is contained in:
Emil Ernerfeldt
2023-12-08 10:32:06 +01:00
committed by GitHub
parent d8a795598f
commit b1721a3ce7
4 changed files with 19 additions and 14 deletions

View File

@@ -802,7 +802,8 @@ impl<'a> TableBody<'a> {
/// Add a single row with the given height.
///
/// If you have many thousands of row it can be more performant to instead use [`Self::rows`] or [`Self::heterogeneous_rows`].
/// ⚠️ It is much more performant to use [`Self::rows`] or [`Self::heterogeneous_rows`],
/// as those functions will only render the visible rows.
pub fn row(&mut self, height: f32, add_row_content: impl FnOnce(TableRow<'a, '_>)) {
let top_y = self.layout.cursor.y;
add_row_content(TableRow {