From a5595e690064971206ea0370ca1d79b444e3ec7b Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 4 Apr 2022 14:22:50 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20extend=20the=20column=20size=20?= =?UTF-8?q?to=20the=20bottom=20of=20the=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s normal for the first columns to be broken, there’s no need to extend their sizes to reach the bottom of the page as we do for "normal" blocks. --- weasyprint/layout/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasyprint/layout/block.py b/weasyprint/layout/block.py index c649990fd..99b400a6d 100644 --- a/weasyprint/layout/block.py +++ b/weasyprint/layout/block.py @@ -750,7 +750,7 @@ def block_container_layout(context, box, bottom_space, skip_stack, # new_box.height new_box.height = max( min(new_box.height, new_box.max_height), new_box.min_height) - elif bottom_space > -inf: + elif bottom_space > -inf and not new_box.is_column: # Make the box fill the blank space at the bottom of the page # https://www.w3.org/TR/css-break-3/#box-splitting new_box.height = (