-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Padding-right on body can't be switched off #197
Comments
same here, not even sure, why you need this additional padding... |
same here, it makes all my app litteraly jumping on the left (especially with vuejs app) |
I literally fixed it like this: let viewer = new Viewer(document.querySelector("#image"), { navbar: false, } });
//here
viewer.close = function(){}
viewer.open = function(){} Please put this ugly padding in a class that can be overridden. |
any news? |
I also noticed the same problem with the body being added with a padding-right causing the style on the background to jitter when the viewer pops up. 我也注意到了同样问题,body被添加了一个padding-right导致弹出viewer时背景上的样式发生抖动。 |
I'm submitting a...
Current behavior
If I open viewer.js in modal padding-right is always added to the body.
It is done here: https://github.com/fengyuanchen/viewerjs/blob/master/src/js/others.js#L26
Expected behavior
I expect additional option to turn off/on this feature.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Currently is breaks layout in our project.
Environment
The text was updated successfully, but these errors were encountered: