summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-11-21 12:47:41 +0000
committerMichael Drake <mdrake.unique@gmail.com>2022-12-14 22:53:35 +0000
commit3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9 (patch)
tree98b52b372383f000b213e06d7aaf2e2326f6eb9f
parentb07bda787c02210d018c39d917b02ca0bee87de7 (diff)
downloadnetsurf-3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9.tar.gz
netsurf-3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9.tar.bz2
html: layout: flex: Only distribute positive remaining cross space
-rw-r--r--content/handlers/html/layout_flex.c2
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;