From a6cd706755c35c5b7740b269815cbb3bcd0b196c Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 11 Jul 2019 13:45:48 +0200 Subject: [PATCH] Firewall, window_highlight_table_option(), safari seems to miss the border by one pixel, better to leave 1px spacing when animating the arrow to the right. --- src/www/javascript/opnsense_legacy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/javascript/opnsense_legacy.js b/src/www/javascript/opnsense_legacy.js index 658aea0e9..a1f547047 100644 --- a/src/www/javascript/opnsense_legacy.js +++ b/src/www/javascript/opnsense_legacy.js @@ -161,7 +161,7 @@ function window_highlight_table_option() container.css('white-space', 'nowrap'); title_td.append(container); - let animate_width = title_td.width() - container.position().left+ title_td.find('i:eq(0)').position().left; + let animate_width = title_td.width() - container.position().left+ title_td.find('i:eq(0)').position().left - 1; $('html, body').animate({scrollTop: option.position().top}, 500, function() { container.append(arrow); container.animate({width: animate_width}, 800);