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

Truncate text in clipped Table columns #5023

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Aug 28, 2024

image

@emilk emilk added feature New feature or request egui_extras labels Aug 28, 2024
@emilk emilk merged commit 3777b8d into master Aug 29, 2024
39 checks passed
@emilk emilk deleted the emilk/truncated-table-content branch August 29, 2024 08:38
486c pushed a commit to 486c/egui that referenced this pull request Oct 9, 2024
* Closes emilk#5013
* Columns with `clip = true` will have `TextWrapMode::Truncate` set
* Added setting `Column::auto_size_this_frame` (acts like a double-click
on column resizer)
* Set `sizing_pass` on all cells in a column that is being auto-sized
(e.g. on double-click)


![image](https://github.com/user-attachments/assets/360f6b59-c9a9-468b-8919-4b7e4fc6661a)
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
* Closes emilk#5013
* Columns with `clip = true` will have `TextWrapMode::Truncate` set
* Added setting `Column::auto_size_this_frame` (acts like a double-click
on column resizer)
* Set `sizing_pass` on all cells in a column that is being auto-sized
(e.g. on double-click)


![image](https://github.com/user-attachments/assets/360f6b59-c9a9-468b-8919-4b7e4fc6661a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_extras feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

egui_extras::TableRow: the col method should default the Ui's text wrap to Truncate
1 participant