Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

egui_extras: Improve the auto-sizing of Table #4756

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jul 2, 2024

This makes the sizing pass of an egui_table ensure the table uses as little width as possible.
Subsequently, it will redistribute all non-resizable columns on the available space, so that a table better follow the parent container as it is resized.

I also added table.reset() for forgetting the current column widths.

emilk added 3 commits July 2, 2024 20:58

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@emilk emilk merged commit 8ef0e85 into master Jul 2, 2024
35 checks passed
@emilk emilk deleted the emilk/rewrite-table-sizing branch July 2, 2024 19:13
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
This makes the sizing pass of an `egui_table` ensure the table uses as
little width as possible.
Subsequently, it will redistribute all non-resizable columns on the
available space, so that a table better follow the parent container as
it is resized.

I also added `table.reset()` for forgetting the current column widths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_extras layout Related to widget layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant