Fix grid measurement bug
This commit is contained in:
parent
64f8f981c2
commit
673d4e33e9
|
|
@ -362,6 +362,7 @@ impl<'a> GridLayouter<'a> {
|
||||||
if let Some(node) = self.cell(x, y) {
|
if let Some(node) = self.cell(x, y) {
|
||||||
let mut pod = self.regions.clone();
|
let mut pod = self.regions.clone();
|
||||||
pod.first.x = rcol;
|
pod.first.x = rcol;
|
||||||
|
pod.base.x = rcol;
|
||||||
|
|
||||||
// All widths should be `rcol` except the base for auto columns.
|
// All widths should be `rcol` except the base for auto columns.
|
||||||
if self.cols[x] == TrackSizing::Auto {
|
if self.cols[x] == TrackSizing::Auto {
|
||||||
|
|
@ -500,6 +501,7 @@ impl<'a> GridLayouter<'a> {
|
||||||
for (x, &rcol) in self.rcols.iter().enumerate() {
|
for (x, &rcol) in self.rcols.iter().enumerate() {
|
||||||
if let Some(node) = self.cell(x, y) {
|
if let Some(node) = self.cell(x, y) {
|
||||||
pod.first.x = rcol;
|
pod.first.x = rcol;
|
||||||
|
pod.base.x = rcol;
|
||||||
|
|
||||||
// All widths should be `rcol` except the base for auto columns.
|
// All widths should be `rcol` except the base for auto columns.
|
||||||
if self.cols[x] == TrackSizing::Auto {
|
if self.cols[x] == TrackSizing::Auto {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue