diff options
| author | bptato <nincsnevem662@gmail.com> | 2022-01-22 15:25:52 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2022-01-22 15:25:52 +0100 |
| commit | 5148f88d52c4d8236eb9828921c6103056440102 (patch) | |
| tree | 8fc717383b078aae5f2d3389c7f58155b8255244 /src/render | |
| parent | 352c2819ae7c8cd56d4f77954cfad9be45745f34 (diff) | |
| download | chawan-5148f88d52c4d8236eb9828921c6103056440102.tar.gz | |
Re-implement margins
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/renderdocument.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |