From 673d4e33e9818b0b1e3e6b99351d8408200349bf Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 13 May 2022 13:49:36 +0200 Subject: [PATCH] Fix grid measurement bug --- src/library/layout/grid.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/library/layout/grid.rs b/src/library/layout/grid.rs index afd08aeed..1028188e3 100644 --- a/src/library/layout/grid.rs +++ b/src/library/layout/grid.rs @@ -362,6 +362,7 @@ impl<'a> GridLayouter<'a> { if let Some(node) = self.cell(x, y) { let mut pod = self.regions.clone(); pod.first.x = rcol; + pod.base.x = rcol; // All widths should be `rcol` except the base for auto columns. if self.cols[x] == TrackSizing::Auto { @@ -500,6 +501,7 @@ impl<'a> GridLayouter<'a> { for (x, &rcol) in self.rcols.iter().enumerate() { if let Some(node) = self.cell(x, y) { pod.first.x = rcol; + pod.base.x = rcol; // All widths should be `rcol` except the base for auto columns. if self.cols[x] == TrackSizing::Auto {