Skip to content

Commit

Permalink
Don’t extend the column size to the bottom of the page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
liZe committed Apr 4, 2022
1 parent 764c6d6 commit a5595e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/layout/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit a5595e6

Please sign in to comment.