-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Extra white space on the left and lost part on the right #1438
Comments
Thanks for the detailed info, without really debugging too much it sounds that it is an issue with scrollbars showing up / not showing up and changing the width of the document, offsetting centering. Will try and work out a fix for it asap |
I am having the same issue and indeed it looks like it is related to scrollbars. In chrome I can hide the scrollbars using webkit and it works fine but not the case for other browsers. My workaround is to hide scrollbars before rendering I add the below class to the "html" element
Then remove it after rendering
|
Confirmed. In my case always 7px (Chrome for Windows). Padding adds to this. As I don't use jQuery I did this instead:
But a real solution would of course be preferred and appreciated. Regarding options, this gave the best result (width previously set for the wrapping div):
If I didn't use "scale: 1" it became scaled up when using scaled text in Windows. Pretty much needed on a high-res laptop screen. If interesting I can post my use case. |
I use the newest version with the following settings and i still get the scroll bar padding problem, without scrollbar it works perfect, in a screen size with scrollbar it has a padding which cuts the img. backgroundColor: null, |
One of my solutions. |
|
I have tried almost all solutions but still not working. |
|
windowHeight: element.scrollHeight > not working... |
worked for me! |
this fix my issue |
@mohitWebcontxt this seems to have fixed that issue with the whitespace on the same edges for me on mobile devices.
|
Issue is not yet resolved |
Bug reports:
https://jsfiddle.net/8dwmbwke/
The width of extra and lost part seems always 8px
It happends when the picture height > browser height (document.body.clientHeight ?) and margin is 0 auto
And if picture width > browser width, it became normal again
(I'm not good at English, so there may be strange places in my expression)
Specifications:
The text was updated successfully, but these errors were encountered: