Skip to content
Permalink
Browse files

Avoid not in flow children to compute box height

  • Loading branch information...
grewn0uille committed Sep 10, 2019
1 parent 03edd01 commit 48d8632eaa69ad56ed353715c70d07158c5ff7f0
Showing with 2 additions and 1 deletion.
  1. +2 −1 weasyprint/layout/columns.py
@@ -187,7 +187,8 @@ def create_column_box(children):
next_box, _, _, _, _ = block_box_layout(
context, column_box, box.content_box_y(),
column_skip_stack, containing_block, True, [], [], [])
next_box_size = next_box.children[0].margin_height()
assert next_box.children[-1].is_in_normal_flow()
next_box_size = next_box.children[-1].margin_height()
else:
empty_space = next_box_size = 0

0 comments on commit 48d8632

Please sign in to comment.
You can’t perform that action at this time.