From a49e0794c256552ba5c19ba0db7c7c5ec4bc1a90 Mon Sep 17 00:00:00 2001 From: Ernest Behinov <31981892+wayheming@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:08:45 +0300 Subject: [PATCH] Update jquery-confirm.js to fix no-scroll class issue --- js/jquery-confirm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery-confirm.js b/js/jquery-confirm.js index a1f6747..6c034c5 100644 --- a/js/jquery-confirm.js +++ b/js/jquery-confirm.js @@ -560,7 +560,7 @@ prevContentHeight = contentHeight; } var wh = $(window).height(); - var total = that.offsetTop + that.offsetBottom + that.$jconfirmBox.height() - that.$contentPane.height() + that.$content.height(); + var total = that.offsetTop + that.offsetBottom + that.$jconfirmBox.outerHeight() - that.$contentPane.outerHeight() + that.$content.outerHeight(); if(total < wh){ that.$contentPane.addClass('no-scroll'); }else{