From c05f5a508f172c23ecf5606879a4b8b2332572a4 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 30 Mar 2024 13:53:44 +0100 Subject: layout: add missing min/max heights to absolute sizes --- src/layout/engine.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/layout/engine.nim b/src/layout/engine.nim index c4328fc9..ca5e506f 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -1065,7 +1065,9 @@ proc resolveAbsoluteSizes(lctx: LayoutState, computed: CSSComputedValues): margin: resolveMargins(containingWidth, lctx, computed), padding: resolvePadding(containingWidth, lctx, computed), minWidth: 0, - maxWidth: high(LayoutUnit) + maxWidth: high(LayoutUnit), + minHeight: 0, + maxHeight: high(LayoutUnit) ) sizes.resolveAbsoluteWidth(containingWidth, computed, lctx) sizes.resolveAbsoluteHeight(containingHeight, computed, lctx) -- cgit 1.4.1-2-gfad0