From 3760bbcd2a0b6ce25ab2b38d9f7ac2c79d8713f9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 21 Nov 2022 12:47:41 +0000 Subject: html: layout: flex: Only distribute positive remaining cross space --- content/handlers/html/layout_flex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3