diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-23 21:55:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-23 21:55:58 +0200 |
| commit | 04fb8b288aa7c80607da79db7d085a4820b95a9d (patch) | |
| tree | 7ca96d09d511274ebac298c329d5eef53a290d9c /src/library/layout/grid.rs | |
| parent | 7a2cc3e7d29d16c5cf9b5a93a688e14da93c8662 (diff) | |
Show rules with type ascribed object
Diffstat (limited to 'src/library/layout/grid.rs')
| -rw-r--r-- | src/library/layout/grid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/layout/grid.rs b/src/library/layout/grid.rs index 4908d4d8..afd08aee 100644 --- a/src/library/layout/grid.rs +++ b/src/library/layout/grid.rs @@ -8,7 +8,7 @@ pub struct GridNode { /// Defines sizing of gutter rows and columns between content. pub gutter: Spec<Vec<TrackSizing>>, /// The nodes to be arranged in a grid. - pub children: Vec<LayoutNode>, + pub cells: Vec<LayoutNode>, } #[node] @@ -25,7 +25,7 @@ impl GridNode { column_gutter.unwrap_or_else(|| base_gutter.clone()), row_gutter.unwrap_or(base_gutter), ), - children: args.all()?, + cells: args.all()?, })) } } @@ -41,7 +41,7 @@ impl Layout for GridNode { let layouter = GridLayouter::new( self.tracks.as_deref(), self.gutter.as_deref(), - &self.children, + &self.cells, regions, styles, ); |
