about summary refs log tree commit diff stats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-29 20:25:27 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-29 20:26:34 +0100
commitfb017f273dab1d63764269ca02700316919522f4 (patch)
treede19963fc6a3e67d6d9d97833cd262bd2ecd6ed5 /src/render
parent5c19adf246650306eaee3605b7b9fc47a6ca73fb (diff)
downloadchawan-fb017f273dab1d63764269ca02700316919522f4.tar.gz
Implement forms
Note: for now, only input tags are supported. Also the implementation is
extremely hacky and needs refactoring...
But it works, I think.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderdocument.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim
index 732bcf47..8c34e273 100644
--- a/src/render/renderdocument.nim
+++ b/src/render/renderdocument.nim
@@ -128,6 +128,11 @@ proc renderInlineContext(grid: var FlexibleGrid, ctx: InlineContext, x, y: int,
   for row in ctx.rows:
     let x = x + row.relx
     let y = y + row.rely
+
+    let r = y div term.ppl
+    while grid.len <= r:
+      grid.addLine()
+
     for atom in row.atoms:
       if atom of BlockContext:
         let ctx = BlockContext(atom)