From 5148f88d52c4d8236eb9828921c6103056440102 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 22 Jan 2022 15:25:52 +0100 Subject: Re-implement margins --- src/render/renderdocument.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render') diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim index 39183c52..4b74bde1 100644 --- a/src/render/renderdocument.nim +++ b/src/render/renderdocument.nim @@ -135,7 +135,7 @@ proc renderInlineContext(grid: var FlexibleGrid, ctx: InlineContext, x, y: int) let y = y - atom.height if atom of BlockContext: let ctx = BlockContext(atom) - grid.renderBlockContext(ctx, x + ctx.relx, y) + grid.renderBlockContext(ctx, x + ctx.relx, y + ctx.rely) elif atom of InlineWord: let word = InlineWord(atom) grid.setRowWord(word, x + word.relx, y) -- cgit