diff options
Diffstat (limited to 'src/css')
| -rw-r--r-- | src/css/layout.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index ff982b57..3a6b3bf5 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -3428,7 +3428,7 @@ proc layout*(root: StyledNode; attrsp: ptr WindowAttributes): BlockBox = ctx.buildBlock() let sizes = lctx.resolveBlockSizes(space, box.computed) # the bottom margin is unused. - lctx.layoutRootBlock(box, offset(x = 0, y = 0), sizes) + lctx.layoutRootBlock(box, offset(x = 0, y = sizes.margin.top), sizes) var size = size(w = attrsp[].widthPx, h = attrsp[].heightPx) # Last absolute layer. lctx.popPositioned(size) |