Skip to content

Padding-right on body can't be switched off #197

@kurnev

Description

@kurnev

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report 
[x] Feature request
[ ] Documentation issue or request

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


Viewer.js version: 1.2.0


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [x] Firefox version XX
- [x] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [x] IE version XX
- [x] Edge version XX

Others:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions