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

overflow hidden with an image height bigger than the paper height puts an empty page in front off #3427

Open
adares2 opened this issue Mar 31, 2024 · 1 comment
Milestone

Comments

@adares2
Copy link

adares2 commented Mar 31, 2024

My image is to big and dompdf puts an empty page in front off.

<div id="sendhtml" style="height: 1122px; width: 794px; overflow: hidden; position: relative;"><img id="bgPic" src="" style="width: 2685.87px; height: 1786.1px; left: -945.936px; top: -332.052px; display: block; position: relative;"><div class="paper" style="color: rgb(0, 0, 0); margin: 0px; padding: 0px; font-weight: normal; font-style: normal; font-family: normal; position: absolute; left: 0px; top: 0px;"><h1 style="display: block; font-size: 30px; text-align: center; padding: 0px; margin: 0px; color: rgb(255, 255, 255);">headline</h1><div class="innerBox" style="text-align: center; width: 794px;"></div></div></div>

@bsweeney bsweeney added this to the 3.0.1 milestone Apr 1, 2024
@bsweeney
Copy link
Member

bsweeney commented Apr 1, 2024

I would expect the image to render on the first full page where the container renders since there is no preceding content.

There may already be an issue related to this, though I didn't find it on a quick search.

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