diff options
author | bptato <nincsnevem662@gmail.com> | 2024-11-19 19:20:41 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-11-19 19:20:41 +0100 |
commit | 1827b2e7851a99d49d5573ea5a418d21b17791d5 (patch) | |
tree | 4768a0bfe610d6aea2c7b4c8afb6f19b5dbc9c15 /src | |
parent | 58a833789dacd6577fc23c382614652033209d76 (diff) | |
download | chawan-1827b2e7851a99d49d5573ea5a418d21b17791d5.tar.gz |
layout: fix intrinsic min width with whitespace: pre
Diffstat (limited to 'src')
-rw-r--r-- | src/css/layout.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/css/layout.nim b/src/css/layout.nim index c5347af2..5ad9cce6 100644 --- a/src/css/layout.nim +++ b/src/css/layout.nim @@ -595,6 +595,7 @@ proc finishLine(ictx: var InlineContext; state: var InlineState; wrap: bool; let whitespace = state.fragment.computed{"white-space"} if whitespace == WhitespacePre: ictx.flushWhitespace(state) + ictx.state.xminwidth = max(ictx.state.xminwidth, ictx.lbstate.size.w) elif whitespace == WhitespacePreWrap: ictx.flushWhitespace(state, hang = true) else: |