diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-30 13:53:44 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-30 13:53:44 +0100 |
commit | c05f5a508f172c23ecf5606879a4b8b2332572a4 (patch) | |
tree | 76af259ae4d8380e7bd36bdaa258ed03d746d58f | |
parent | 6d3196db2967b1d389699ee3f40217ec9b48b9ae (diff) | |
download | chawan-c05f5a508f172c23ecf5606879a4b8b2332572a4.tar.gz |
layout: add missing min/max heights to absolute sizes
-rw-r--r-- | src/layout/engine.nim | 4 |
1 files changed, 3 insertions, 1 deletions
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) |