aboutsummaryrefslogtreecommitdiffstats
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index bdc51122..f3249cba 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1262,18 +1262,8 @@ proc buildTableRow(pctx: TableContext, ctx: RowContext, parent: BlockBox,
# Add inline spacing for merged columns.
w += pctx.inlinespacing * (cellw.colspan - 1) * 2
if cellw.reflow and cellw.builder != nil:
- #TODO TODO TODO this is a hack, and it doesn't even work properly
- #TODO 2: maybe we can remove this now?
- #let ocomputed = cellw.builder.computed
- #cellw.builder.computed = ocomputed.copyProperties()
- #cellw.builder.computed{"width"} = CSSLength(
- # num: toFloat64(w),
- # unit: UNIT_PX
- #)
- #TODO specified table height should be distributed among rows.
cell = parent.viewport.buildTableCell(cellw.builder, stretch(w),
maxContent())
- #cellw.builder.computed = ocomputed
w = max(w, cell.width)
x += pctx.inlinespacing
if cell != nil: