Skip to content

Commit

Permalink
Fix padding and margin management for column flex boxes
Browse files Browse the repository at this point in the history
Nothing more than a stupid typo. Fix #919.
  • Loading branch information
liZe committed Aug 14, 2019
1 parent 554225b commit 440070b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weasyprint/layout/flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def flex_layout(context, box, max_position_y, skip_stack, containing_block,
else:
child.height = (
child.target_main_size -
child.padding_left - child.padding_right -
child.border_left_width - child.border_right_width)
child.padding_top - child.padding_bottom -
child.border_top_width - child.border_top_width)
if child.margin_left != 'auto':
child.height -= child.margin_left
if child.margin_right != 'auto':
Expand Down

0 comments on commit 440070b

Please sign in to comment.