1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

egui_extras Table/Strip: fix some spacing bugs

This commit is contained in:
Emil Ernerfeldt
2022-04-11 10:19:07 +02:00
parent c88e1f8b29
commit 772ef84242
2 changed files with 5 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ impl<'a> StripBuilder<'a> {
F: for<'b> FnOnce(Strip<'a, 'b>),
{
let widths = self.sizing.to_lengths(
self.ui.available_rect_before_wrap().width() - self.ui.spacing().item_spacing.x,
self.ui.available_rect_before_wrap().width(),
self.ui.spacing().item_spacing.x,
);
let mut layout = StripLayout::new(self.ui, CellDirection::Horizontal, self.clip);
@@ -107,7 +107,7 @@ impl<'a> StripBuilder<'a> {
F: for<'b> FnOnce(Strip<'a, 'b>),
{
let heights = self.sizing.to_lengths(
self.ui.available_rect_before_wrap().height() - self.ui.spacing().item_spacing.y,
self.ui.available_rect_before_wrap().height(),
self.ui.spacing().item_spacing.y,
);
let mut layout = StripLayout::new(self.ui, CellDirection::Vertical, self.clip);