mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 07:10:04 -04:00
Fix not taking clipping into account when calculating colum remainder (#3357)
This commit is contained in:
@@ -648,7 +648,9 @@ impl<'a> Table<'a> {
|
|||||||
// If the last column is 'remainder', then let it fill the remainder!
|
// If the last column is 'remainder', then let it fill the remainder!
|
||||||
let eps = 0.1; // just to avoid some rounding errors.
|
let eps = 0.1; // just to avoid some rounding errors.
|
||||||
*column_width = available_width - eps;
|
*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);
|
*column_width = width_range.clamp(*column_width);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user