Skip to content

Commit

Permalink
Merge pull request vodkabears#261 from pesrepus/master
Browse files Browse the repository at this point in the history
Fix function getScrollbarWidth
vodkabears authored Jan 11, 2017
2 parents 92408d2 + d08ac32 commit 7f9ce2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remodal.js
Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@
* @returns {Number}
*/
function getScrollbarWidth() {
if ($(document.body).height() <= $(window).height()) {
if ($(document).height() <= $(window).height()) {
return 0;
}

0 comments on commit 7f9ce2c

Please sign in to comment.