From 1a89cb35e1bcf5e0f6dbe90a76465dbbaa7760cf Mon Sep 17 00:00:00 2001 From: Michael Birdhouse Date: Wed, 22 Jun 2022 06:33:51 -0400 Subject: [PATCH] Fix uneven table striping (#1680) * Fix uneven table striping * simplify the code Co-authored-by: Emil Ernerfeldt --- egui_extras/src/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui_extras/src/layout.rs b/egui_extras/src/layout.rs index 9a83e22e..895b7ac9 100644 --- a/egui_extras/src/layout.rs +++ b/egui_extras/src/layout.rs @@ -110,7 +110,7 @@ impl<'l> StripLayout<'l> { let rect = self.cell_rect(&width, &height); // Make sure we don't have a gap in the stripe background: - let rect = rect.expand2(egui::vec2(0.5 * self.ui.spacing().item_spacing.x, 0.0)); + let rect = rect.expand2(0.5 * self.ui.spacing().item_spacing); self.ui .painter()