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

Make stick_to_bottom take a bool argument

This commit is contained in:
Emil Ernerfeldt
2022-08-02 20:34:50 +02:00
parent 263c9bd601
commit 06adb09fa3
4 changed files with 11 additions and 13 deletions

View File

@@ -271,7 +271,7 @@ impl super::View for ScrollStickTo {
let text_style = TextStyle::Body;
let row_height = ui.text_style_height(&text_style);
ScrollArea::vertical().stick_to_bottom().show_rows(
ScrollArea::vertical().stick_to_bottom(true).show_rows(
ui,
row_height,
self.n_items,