summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-13 13:49:36 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-13 13:49:36 +0200
commit673d4e33e9818b0b1e3e6b99351d8408200349bf (patch)
treea2f7d2105ba3bb6b7e7b5b1992a20310fd3748d5 /src
parent64f8f981c2909da428612679807f969a3933a1fa (diff)
Fix grid measurement bug
Diffstat (limited to 'src')
-rw-r--r--src/library/layout/grid.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/layout/grid.rs b/src/library/layout/grid.rs
index afd08aee..1028188e 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 {