Skip to content

Change default max_scroll_height of egui::Table to f32::INFINITY#4817

Merged
emilk merged 1 commit intomasterfrom
antoine/table-max-size
Jul 12, 2024
Merged

Change default max_scroll_height of egui::Table to f32::INFINITY#4817
emilk merged 1 commit intomasterfrom
antoine/table-max-size

Conversation

@abey79
Copy link
Collaborator

@abey79 abey79 commented Jul 11, 2024

egui::Table has a weirdly specific default max_scroll_height set to 800.0. This means that even with vscroll(true) and auto_shrink([_, false]), the table will not expend to the full available height. This PR changes this value to f32::INFINITY. This makes it consistent with the corresponding default value of ScrollArea::max_size.y, which is where that max_scroll_height ends up being used.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to match ScrollArea

@emilk emilk merged commit 08c75d7 into master Jul 12, 2024
@emilk emilk deleted the antoine/table-max-size branch July 12, 2024 08:04
lucasmerlin pushed a commit to lucasmerlin/egui that referenced this pull request Jul 30, 2024
emilk#4817)

`egui::Table` has a weirdly specific default `max_scroll_height` set to
800.0. This means that even with `vscroll(true)` and `auto_shrink([_,
false])`, the table will not expend to the full available height. This
PR changes this value to `f32::INFINITY`. This makes it consistent with
the corresponding default value of `ScrollArea::max_size.y`, which is
where that `max_scroll_height` ends up being used.
486c pushed a commit to 486c/egui that referenced this pull request Oct 9, 2024
emilk#4817)

`egui::Table` has a weirdly specific default `max_scroll_height` set to
800.0. This means that even with `vscroll(true)` and `auto_shrink([_,
false])`, the table will not expend to the full available height. This
PR changes this value to `f32::INFINITY`. This makes it consistent with
the corresponding default value of `ScrollArea::max_size.y`, which is
where that `max_scroll_height` ends up being used.
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
emilk#4817)

`egui::Table` has a weirdly specific default `max_scroll_height` set to
800.0. This means that even with `vscroll(true)` and `auto_shrink([_,
false])`, the table will not expend to the full available height. This
PR changes this value to `f32::INFINITY`. This makes it consistent with
the corresponding default value of `ScrollArea::max_size.y`, which is
where that `max_scroll_height` ends up being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants