diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/layout/grid.rs | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'library/src/layout/grid.rs')
| -rw-r--r-- | library/src/layout/grid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/grid.rs b/library/src/layout/grid.rs index d3758fd6..b6465e1c 100644 --- a/library/src/layout/grid.rs +++ b/library/src/layout/grid.rs @@ -73,7 +73,7 @@ pub struct GridNode { /// /// The cells are populated in row-major order. #[variadic] - pub cells: Vec<Content>, + pub children: Vec<Content>, /// Defines the column sizes. /// @@ -114,7 +114,7 @@ impl Layout for GridNode { regions: Regions, ) -> SourceResult<Fragment> { // Prepare grid layout by unifying content and gutter tracks. - let cells = self.cells(); + let cells = self.children(); let layouter = GridLayouter::new( vt, Axes::new(&self.columns().0, &self.rows().0), |
