summaryrefslogtreecommitdiff
path: root/library/src/layout/table.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-13 11:40:05 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-13 11:40:05 +0200
commit6c542ea1a4a0ee85069dad6974ff331851eff406 (patch)
treea389d6e36163a931b4f989ee421d2454da20e4ec /library/src/layout/table.rs
parentc5cdbaeaf84bbd68b4ba18979c796f4f0f0f7cd7 (diff)
Pass `Vt` through grid layouter explicitly
Diffstat (limited to 'library/src/layout/table.rs')
-rw-r--r--library/src/layout/table.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs
index 357263f4..62f8c131 100644
--- a/library/src/layout/table.rs
+++ b/library/src/layout/table.rs
@@ -162,7 +162,6 @@ impl Layout for TableElem {
// Prepare grid layout by unifying content and gutter tracks.
let layouter = GridLayouter::new(
- vt,
tracks.as_deref(),
gutter.as_deref(),
&cells,
@@ -171,7 +170,7 @@ impl Layout for TableElem {
);
// Measure the columns and layout the grid row-by-row.
- let mut layout = layouter.layout()?;
+ let mut layout = layouter.layout(vt)?;
// Add lines and backgrounds.
for (frame, rows) in layout.fragment.iter_mut().zip(&layout.rows) {