-
Notifications
You must be signed in to change notification settings - Fork 34
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
iOS: Components seem to be cut or cropped on smaller screen sizes #43
Comments
Hi, I don't see any difference between desktop and mobile for the above link. Both are exactly the same with no crop. Apart from compression, PNG and JPEG should be exactly the same as we only pass filetype to For pdf check the options available for |
@salman-monetate thanks for getting back to me. Could you please tell me which device you tested this on, as I’m still getting the same problem with Safari on iOS (iPhone XS / iOS 14.5) The image below is what I get on my device. |
I tried it with Chrome/Brave on Android. |
Thank you. I've updated the issue title to reflect that it seems to be iOS only. I see the same buggy behaviour in Chrome on iOS too. Any idea where I can start looking to resolve this? |
This package heavily relies on |
I'm facing the same issue! Did you solve it somehow @Bodacious ? |
WORKAROUND |
I faced the same issues, and this option worked for me |
Hi, I am having the same issue but even with html2CanvasOptions: { scrollY: 0 } or the scrollY to the position of the component to export I always get a blank image. Only once I managed to get something like 20px in from the bottom of an image but I never managed to get it again. Is there a stable solution to this issue? |
where do you add the htmlcanvas options? |
I've been using this library on a personal project which you can view here:
https://gavinmorrice.com/russian-squat-routine-generator
When you click the button on a larger screen or desktop computer, it downloads the full table content as expected.
But when you click the button on a small screen or mobile device, it seems to crop out a portion of the image. PNG gives the best result, JPEG is worse, and PDFs are coming down as blank.
Any idea what I can do to fix this? Thanks!
The text was updated successfully, but these errors were encountered: