Skip to content
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

Не создаётся отступ от правого края #15

Open
abriginets opened this issue Apr 25, 2016 · 1 comment
Open

Comments

@abriginets
Copy link

Доброй ночи. При открытии модального окна к body присваивается свойство margin-right: 17px, однако отступ не происходит. Из-за этого, при открытии модалки пропадает скролл у body и происходит такой рывок вбок, что немного раздражает. Можно ли это как-то пофиксить?

@MihanEntalpo
Copy link

Такая ситуация происходит когда задано
body { width:100%; } либо при другом способе задания ширины body жёстко.
Отступ добавляется при помощью margin-right для body. В принципе можно в обработчике beforeOpen именять ширину body программно, если необходимо чтобы она была задана жёстко (а в afterClose менять ширину обратно). Либо просто убрать указание ширины у body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants