about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-20 00:19:48 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-20 00:19:48 +0100
commitd8ff191ee73753e75abcaac92fa3128413da4251 (patch)
treeb3c610d81f3daa4c480800126c57897eb11b38dc /src/layout/engine.nim
parentca86dcd3326d700831f899ff33c5a600afdc2845 (diff)
downloadchawan-d8ff191ee73753e75abcaac92fa3128413da4251.tar.gz
layout/engine: reset absolutes on relayout
Diffstat (limited to 'src/layout/engine.nim')
-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 4b8e4784..fda97891 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1542,5 +1542,6 @@ proc generateTableBox(styledNode: StyledNode, viewport: Viewport, parent: var In
 
 proc renderLayout*(viewport: var Viewport, document: Document, root: StyledNode) =
   viewport.root.setLen(0)
+  viewport.absolutes.setLen(0)
   let builder = root.generateBlockBox(viewport)
   viewport.buildRootBlock(builder)