about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-29 00:18:53 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-29 00:18:53 +0100
commitd1f6224997b8fb7203a13c42c95dc7814edfb6fd (patch)
treeef1ce4bd8cba0a9f333ed26be5d77a1c4264a9e0 /src/layout
parent6d6c589faaee1b76cb346500d06ff310791dfe1f (diff)
downloadchawan-d1f6224997b8fb7203a13c42c95dc7814edfb6fd.tar.gz
Add missing iflush call, add experimental line height error correction
It kind of works, I guess?
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 4a136c87..fe912174 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1011,6 +1011,7 @@ proc generateFromElem(ctx: var InnerBlockContext, styledNode: StyledNode) =
 
   case styledNode.computed{"display"}
   of DISPLAY_BLOCK:
+    ctx.iflush()
     ctx.flush()
     let childbox = styledNode.generateBlockBox(ctx.viewport)
     box.children.add(childbox)