From f0215642e99b3698fb9864a274e59cd19f8dc9f9 Mon Sep 17 00:00:00 2001 From: Nicolas Rignault Date: Thu, 25 May 2023 13:29:04 +0200 Subject: [PATCH] fix smooth behavior when resize --- js/jquery-confirm.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/jquery-confirm.js b/js/jquery-confirm.js index a1f6747..7000cb1 100644 --- a/js/jquery-confirm.js +++ b/js/jquery-confirm.js @@ -551,12 +551,9 @@ if(that.smoothContent){ var contentHeight = that.$content.outerHeight() || 0; if(contentHeight !== prevContentHeight){ - - // Commented out to prevent scroll to top when updating the content - // (for example when using ajax in forms in content) - // that.$contentPane.css({ - // 'height': contentHeight - // }).scrollTop(0); + that.$contentPane.css({ + 'height': contentHeight + }); prevContentHeight = contentHeight; } var wh = $(window).height();