Skip to content

Commit

Permalink
Remove padding from distributed excess width
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jan 29, 2016
1 parent f8cf486 commit 0eebd03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weasyprint/layout/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ def auto_table_layout(context, box, containing_block):
# Distribute available width to columns
# http://dbaron.org/css/intrinsic/#distributetocols
table.column_widths = max_content_guess
excess_width = assignable_width - sum(max_content_guess)
excess_width = (
assignable_width - sum(max_content_guess) -
table.padding_left - table.padding_right)

# First group
columns = [
Expand Down

0 comments on commit 0eebd03

Please sign in to comment.