diff options
author | bptato <nincsnevem662@gmail.com> | 2021-11-23 13:47:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-11-23 13:56:53 +0100 |
commit | fbac38a0b0ce15954f8ba441a7a1adfb67dd8a80 (patch) | |
tree | 27b1541b043f3d3a79de7818091d6e7d25c707f4 /src/layout | |
parent | 820d64f453829691013bc83be73ca36a1a5673bd (diff) | |
download | chawan-fbac38a0b0ce15954f8ba441a7a1adfb67dd8a80.tar.gz |
Allow matching root element, write last buffer display line instantly
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 4f0c6a58..6ca232b7 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -214,6 +214,7 @@ proc alignBoxes*(document: Document, width: int, height: int): CSSBox = var rootbox = CSSBlockBox(x: 0, y: 0, width: width, height: 0) rootbox.context = newContext(rootbox) rootbox.bcontext = new(BlockContext) + rootbox.bcontext.nodes.add(document.root) for child in document.root.childNodes: CSSBox(rootbox).add(processNode(rootbox, child)) return rootbox |