Marek Has
Marek Has

Reputation: 177

Materialize: modal shifts background and causes page jumping right

When opening modals, sidenav or data picker in Materialize CSS, the whole page is jumping right, because scrollbar is disappearing.

http://materializecss.com/modals.html

How I can prevent it?

Upvotes: 0

Views: 1068

Answers (2)

david
david

Reputation: 19

this should fix the issue

body {
   padding: 0 !important
}

Upvotes: 1

repzero
repzero

Reputation: 8412

On carefully inspecting that link in your question.....You may want to put overflow: auto !important; to your html <body> tag css styling (quick hack)

example

body {
    background-color: #FCFCFC;
    overflow: auto !important;
}

Upvotes: 2

Related Questions