1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00

Don't render abosolute boxes twice

This commit is contained in:
Guillaume Ayoub 2013-03-13 18:50:21 +01:00
parent 163f9a04db
commit 59daa1a827
2 changed files with 1 additions and 1 deletions

View File

@ -229,6 +229,7 @@ def absolute_block(context, box, containing_block, fixed_boxes):
def absolute_layout(context, placeholder, containing_block, fixed_boxes):
"""Set the width of absolute positioned ``box``."""
assert not placeholder._layout_done
box = placeholder._box
cb = containing_block

View File

@ -581,7 +581,6 @@ def split_inline_box(context, box, position_x, max_x, skip_stack,
placeholder = AbsolutePlaceholder(child)
line_placeholders.append(placeholder)
children.append(placeholder)
absolute_boxes.append(placeholder)
if child.style.position == 'absolute':
absolute_boxes.append(placeholder)
else: