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:
parent
163f9a04db
commit
59daa1a827
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user