Skip to content

Commit

Permalink
Fix not taking clipping into account when calculating colum remainder (
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda authored Sep 18, 2023
1 parent 6870d14 commit ad8b41c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/egui_extras/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ impl<'a> Table<'a> {
// If the last column is 'remainder', then let it fill the remainder!
let eps = 0.1; // just to avoid some rounding errors.
*column_width = available_width - eps;
*column_width = column_width.at_least(max_used_widths[i]);
if !column.clip {
*column_width = column_width.at_least(max_used_widths[i]);
}
*column_width = width_range.clamp(*column_width);
break;
}
Expand Down

0 comments on commit ad8b41c

Please sign in to comment.