aboutsummaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-28 20:28:31 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-28 20:32:08 +0100
commitf9979334fa2b65a7747b3875feef45a4068a1d1d (patch)
tree060f6e5ca1e41b9cc6510eab7bb3af6ec6e5a04a /src/render
parent367c95b498fac808fe8c3daf0febb830eaa62706 (diff)
downloadchawan-f9979334fa2b65a7747b3875feef45a4068a1d1d.tar.gz
layout/engine: table layout improvements, fix pre-wrap whitespace
Table layout: weight calculation is no longer broken. We use maxContentWidth for this, which the first pass of a non-specified table cell layout overrides. pre-wrap: just a minor fix - include it in whitespacepre, now that we have a distinction between pre and wrapping white-space
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderdocument.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim
index cd6d7a0e..46d8a003 100644
--- a/src/render/renderdocument.nim
+++ b/src/render/renderdocument.nim
@@ -316,7 +316,7 @@ proc renderBlockContext(grid: var FlexibleGrid, ctx: BlockBox, x, y: int, window
if ctx of ListItemBox:
let ctx = ListItemBox(ctx)
if ctx.marker != nil:
- grid.renderInlineContext(ctx.marker, x - ctx.marker.maxwidth, y, window)
+ grid.renderInlineContext(ctx.marker, x - ctx.marker.width, y, window)
if ctx.inline != nil:
assert ctx.nested.len == 0