Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative Div containing Absolute Divs not creating multiple pages #375

Closed
jeffgabhart opened this issue Oct 27, 2016 · 1 comment
Closed

Comments

@jeffgabhart
Copy link

I am creating blocks that have absolute positioned data within each block. When rendered with weasyprint, I get only one page even though there is enough html for two pages.

Sample code


<div style="position: relative; height: 400px; border: 1px solid black; width: 100%;">
  <div style="position: absolute; top: 50px; left: 10px">Position 1</div>
  <div style="position: absolute; top: 250px; left: 30px">Position 2</div>
</div>
<div style="position: relative; height: 400px; border: 1px solid black; width: 100%;">
  <div style="position: absolute; top: 50px; left: 10px">Position 3</div>
  <div style="position: absolute; top: 250px; left: 30px">Position 4</div>
</div>
<div style="position: relative; height: 400px; border: 1px solid black; width: 100%;">
  <div style="position: absolute; top: 50px; left: 10px">Position 5</div>
  <div style="position: absolute; top: 250px; left: 30px">Position 6</div>
</div>
<div style="position: relative; height: 400px; border: 1px solid black; width: 100%;">
  <div style="position: absolute; top: 50px; left: 10px">Position 7</div>
  <div style="position: absolute; top: 250px; left: 30px">Position 8</div>
</div>

Sample pdf
report.pdf

@liZe
Copy link
Member

liZe commented Oct 28, 2016

Thanks for reporting this issue! That's a subtle duplicate of the old #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants