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

Fix column background position for rtl tables

Related to #1097.
This commit is contained in:
Guillaume Ayoub 2020-04-08 15:31:24 +02:00
parent c22fcb1b36
commit ba1abecc31

View File

@ -121,12 +121,12 @@ def layout_background_layer(box, page, resolution, image, size, clip, repeat,
cells = box.get_cells()
if cells:
clipped_boxes = [cell.rounded_border_box() for cell in cells]
min_x = min(cell.border_box_x() for cell in cells)
max_x = max(
cell.border_box_x() + cell.border_width()
for cell in cells)
painting_area = [
box.border_box_x(), box.border_box_y(),
max_x - box.border_box_x(),
min_x, box.border_box_y(), max_x - min_x,
box.border_box_y() + box.border_height()]
else:
painting_area = box_rectangle(box, clip)