1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

fix the animated scroll target on the ssl panel to scroll so that the header is actually visible and not covered by the nav bar

This commit is contained in:
Joshua Tauberer 2014-10-23 17:10:21 +00:00
parent b75fbf22ca
commit 34fca29dd3

View File

@ -83,7 +83,7 @@ function ssl_install(elem) {
$('#csr_info').slideDown();
$('#ssl_csr').text('Loading...');
show_csr();
$('html, body').animate({ scrollTop: $('#ssl_install_header').offset().top })
$('html, body').animate({ scrollTop: $('#ssl_install_header').offset().top - $('.navbar-fixed-top').height() - 20 })
return false;
}