mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 07:57:52 +03:00
6a9dac4861
As the bottom of the page is now dynamic (because it changes with footnotes), passing the max_position_y is difficult: it would require the value to be passed to layout functions, and returned (possibly updated) by these functions. The new solution is to store the page bottom in the context, and to update it when a footnote is included. The new max position y is calculated when needed, using the updated position of the page bottom. To handle extra bottom spaces (bottom padding/border/margin of a parent box for example), a bottom_space parameter is given when needed. This value can be set to -inf when we don’t want to take care of the page bottom (that’s equivalent to max_position_y=inf). |
||
---|---|---|
.. | ||
draw | ||
layout | ||
resources | ||
__init__.py | ||
conftest.py | ||
test_acid2.py | ||
test_api.py | ||
test_boxes.py | ||
test_counters.py | ||
test_css_descriptors.py | ||
test_css_validation.py | ||
test_css.py | ||
test_float.py | ||
test_fonts.py | ||
test_pdf.py | ||
test_presentational_hints.py | ||
test_stacking.py | ||
test_target.py | ||
test_text.py | ||
test_unicode.py | ||
test_variables.py | ||
testing_utils.py |