diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-11-21 12:47:41 +0000 |
---|---|---|
committer | Michael Drake <mdrake.unique@gmail.com> | 2022-12-14 22:53:35 +0000 |
commit | 3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9 (patch) | |
tree | 98b52b372383f000b213e06d7aaf2e2326f6eb9f | |
parent | b07bda787c02210d018c39d917b02ca0bee87de7 (diff) | |
download | netsurf-3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9.tar.gz |
html: layout: flex: Only distribute positive remaining cross space
-rw-r--r-- | content/handlers/html/layout_flex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/html/layout_flex.c b/content/handlers/html/layout_flex.c index c9e02a6af..b57f3e312 100644 --- a/content/handlers/html/layout_flex.c +++ b/content/handlers/html/layout_flex.c @@ -913,7 +913,7 @@ static void layout_flex__place_lines(struct flex_ctx *ctx) int extra = 0; if (ctx->available_cross != AUTO && - ctx->available_cross != ctx->cross_size && + ctx->available_cross > ctx->cross_size && ctx->line.count > 0) { extra = ctx->available_cross - ctx->cross_size; |