From d6000870dbf2f110c3903e03833151cce1d9759a Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 18 Jul 2022 17:58:38 +0200 Subject: Enable remote stylesheets; fix inline block values --- src/layout/engine.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/engine.nim') 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: -- cgit 1.4.1-2-gfad0