diff --git a/src/www/system_advanced_firewall.php b/src/www/system_advanced_firewall.php index f1c3f6b60..8cc17aea1 100644 --- a/src/www/system_advanced_firewall.php +++ b/src/www/system_advanced_firewall.php @@ -249,7 +249,7 @@ include("head.inc"); title_td.append(container); let animate_width = title_td.width() - container.position().left+ title_td.find('i:eq(0)').position().left; - $('html, body').animate({scrollTop: option.offset().top}, 500, function() { + $('html, body').animate({scrollTop: option.position().top}, 500, function() { container.append(arrow); container.animate({width: animate_width}, 800); });