You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then after resizing the window smaller, Column 3 and Column 4 stop shrinking. It looks like the .desired_width(ui.available_width()) affects Column::remainder(), causing the remaining columns to no longer recalculate their widths properly.
Problem 2
If I do not set .desired_width(ui.available_width()), then the TextEdit inside Column 3 does not expand or adapt properly to the column width changes.
Expected behavior
I want a layout where:
Column 1 and Column 2 are fixed width
Column 3 and Column 4 always evenly split the remaining space
The layout correctly adapts when resizing the window (both growing and shrinking)
Question
What is the correct way to achieve this behavior in egui_extras::TableBuilder?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a table with 4 columns:
Column 1 and Column 2 have fixed widths
Column 3 and Column 4 should automatically share the remaining available space equally
However, I encountered a layout issue when using

egui_extras::TableBuilder.Problem 1
If I set:
then after resizing the window smaller, Column 3 and Column 4 stop shrinking. It looks like the
.desired_width(ui.available_width())affectsColumn::remainder(), causing the remaining columns to no longer recalculate their widths properly.Problem 2
If I do not set
.desired_width(ui.available_width()), then theTextEditinside Column 3 does not expand or adapt properly to the column width changes.Expected behavior
I want a layout where:
Column 1 and Column 2 are fixed width
Column 3 and Column 4 always evenly split the remaining space
The layout correctly adapts when resizing the window (both growing and shrinking)
Question
What is the correct way to achieve this behavior in egui_extras::TableBuilder?
Here is the problematic code:
Beta Was this translation helpful? Give feedback.
All reactions