From 468167f527f815ba431362932f1070d7cdb70429 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Mon, 18 Sep 2023 15:32:57 +0200 Subject: [PATCH] Fix not taking clipping into account when calculating colum remainder --- crates/egui_extras/src/table.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/egui_extras/src/table.rs b/crates/egui_extras/src/table.rs index e30367db446..c687a7f1c35 100644 --- a/crates/egui_extras/src/table.rs +++ b/crates/egui_extras/src/table.rs @@ -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; }