1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Set the column_widths attribute for float tables

This commit is contained in:
Guillaume Ayoub 2012-05-31 18:08:14 +02:00
parent ffd03a578b
commit deb7bac3b2

View File

@ -10,10 +10,10 @@
from __future__ import division, unicode_literals
from .absolute import absolute_layout
from .markers import list_marker_layout
from .percentages import resolve_percentages, resolve_position_percentages
from .preferred import shrink_to_fit
from .tables import table_wrapper_width
from ..formatting_structure import boxes
@ -45,6 +45,11 @@ def float_layout(document, box, containing_block, absolute_boxes):
# avoid a circular import
from .blocks import block_container_layout
if box.is_table_wrapper:
table_wrapper_width(
box, (containing_block.width, containing_block.height),
absolute_boxes)
if isinstance(box, boxes.BlockBox):
excluded_shapes = document.excluded_shapes
document.excluded_shapes = []