From 75310d68b875964c757c73ab1df791cda6fba756 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 7 Jun 2023 19:46:19 +0200 Subject: Add support for visibility --- src/layout/engine.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/layout') diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 92eeabbc..edc6c2b2 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -1148,6 +1148,8 @@ proc buildTableLayout(table: BlockBox, builder: TableBoxBuilder) = dec n var y = 0 for roww in ctx.rows: + if roww.builder.computed{"visibility"} == VISIBILITY_COLLAPSE: + continue y += ctx.blockspacing let row = ctx.buildTableRow(roww, table, roww.builder) row.offset.y += y -- cgit 1.4.1-2-gfad0