Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Jun 27, 2014
1 parent b0574f3 commit c447479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Flat, responsive, lightweight, fast, easy customizable modal window plugin with
Minified version size: ~4kb

#IMPORTANT!
If your page body requires `height: 100%`, your page will scroll to the top(#20, #21), because remodal sets `overflow: hidden` to the html and body when opening to hide a scrollbar. There is no problem if your content doesn't overflow your full height body container, otherwise you should do something of this:
If your page body requires `height: 100%`, your page will scroll to the top([#20](https://github.com/VodkaBears/Remodal/issues/20), [#21](https://github.com/VodkaBears/Remodal/issues/21)), because remodal sets `overflow: hidden` to the html and body when opening to hide a scrollbar. There is no problem if your content doesn't overflow your full height body container, otherwise you should do something of this:
* Try to set `min-height: 100%` instead of `height: 100%`. If it doesn't help, read next.
* Set `html, body { overflow: auto !important }`. Your page won't be locked and will be scrollable always.

Expand Down

0 comments on commit c447479

Please sign in to comment.