diff --git a/src/remodal.js b/src/remodal.js index b1fe1d3..d6f985d 100644 --- a/src/remodal.js +++ b/src/remodal.js @@ -202,7 +202,7 @@ * @returns {Number} */ function getScrollbarWidth() { - if ($(document.body).height() <= $(window).height()) { + if ($(document).height() <= $(window).height()) { return 0; }