mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Fix uneven table striping (#1680)
* Fix uneven table striping * simplify the code Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
committed by
GitHub
parent
bd5f553c3a
commit
1a89cb35e1
@@ -110,7 +110,7 @@ impl<'l> StripLayout<'l> {
|
|||||||
let rect = self.cell_rect(&width, &height);
|
let rect = self.cell_rect(&width, &height);
|
||||||
|
|
||||||
// Make sure we don't have a gap in the stripe background:
|
// 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
|
self.ui
|
||||||
.painter()
|
.painter()
|
||||||
|
|||||||
Reference in New Issue
Block a user