about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-07-18 17:58:38 +0200
committerbptato <nincsnevem662@gmail.com>2022-07-18 17:58:38 +0200
commitd6000870dbf2f110c3903e03833151cce1d9759a (patch)
tree0a1ab21793d9413c764d594a36396234be1ddbc0 /src/layout/engine.nim
parent918964940ddbbef317168392bc5f5e193a7a96cd (diff)
downloadchawan-d6000870dbf2f110c3903e03833151cce1d9759a.tar.gz
Enable remote stylesheets; fix inline block values
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index a21d444a..bdff8c64 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -688,7 +688,7 @@ proc generateFromElem(box: BlockBoxBuilder, styledNode: StyledNode, blockgroup:
     box.generateInlineBoxes(styledNode, blockgroup, viewport)
   of DISPLAY_INLINE_BLOCK:
     flush_ibox
-    let childbox = getInlineBlockBox(box.computed)
+    let childbox = getInlineBlockBox(styledNode.computed)
     childbox.content = styledNode.generateBlockBox(viewport)
     blockgroup.add(childbox)
   else: