summaryrefslogtreecommitdiff
path: root/src/library/grid.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
commit79638d4bbdc140a8dca0ccfdf70ffd607d5da251 (patch)
tree3da8a7d345ccac389d07c8327d9c63fd7209a250 /src/library/grid.rs
parent73c4701749ac3919c5b845002052326502c67306 (diff)
Don't wrap already layoutable nodes into flows/pars unnecessarily
Diffstat (limited to 'src/library/grid.rs')
-rw-r--r--src/library/grid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/grid.rs b/src/library/grid.rs
index 692ed210..62c10e5a 100644
--- a/src/library/grid.rs
+++ b/src/library/grid.rs
@@ -45,7 +45,7 @@ pub fn grid(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> {
GridNode {
tracks: tracks.clone(),
gutter: gutter.clone(),
- children: children.iter().map(|child| child.to_flow(style).pack()).collect(),
+ children: children.iter().map(|child| child.pack(style)).collect(),
}
})))
}