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
Image positioning error #3173
Comments
Part of this appears to be incorrect adjustment to elements based on the line height. You can see this, particularly, with the following HTML:
I had started to work on a fix for the line height adjustment issue in #2762, though I ran into a roadblock then had to switch gears and just haven't gotten back to it. If you render with that version of the code you can see that the images are consistently placed (and is more consistent with browser rendering). I don't think that update will make the next release though I hope to return to it afterwards. For reference, the following sample:
|
Thank you, @bsweeney. I tried to use the vertical-align branch of the project, which contains your changes. The images alignment problems did go away, but unfortunately the changes created overall more layout problems in my PDFs (a lot of divs switched vertical alignment from top to bottom and some of them doubled their height), so I'm sticking to the release version for now and hope to get the fix benefits in a future release. |
Ah ha ha yes I should have mentioned that it isn't quite ready for general use. I've seen the increased/increasing height issue. I don't think I've seen the vertical alignment issue so would be happy to have a sample to test against. |
FYI appears to be the same as #2180. |
hello everyone @bsweeney , I have the same problem, but when I tested the 'img {vertical-align: top;}' it looked like this: so in images with different sizes one next to the other it will still cause another problem |
I found a strange, but consistent error with image positioning. See the very simple attached file.
Using DomPDF 2.0.3.
test.zip
test.pdf
The text was updated successfully, but these errors were encountered: