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();