From ec6bb5811befdfe529b9f4381342cfd4a96597b1 Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Tue, 23 Feb 2021 09:32:21 +0100 Subject: [PATCH] SONAR-14509 Security hotspot page scroll logic might makes item disappear --- .../js/apps/security-hotspots/SecurityHotspotsAppRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsAppRenderer.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsAppRenderer.tsx index c8dba8306cf..2eb9a5e8928 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/SecurityHotspotsAppRenderer.tsx @@ -88,7 +88,7 @@ export default function SecurityHotspotsAppRenderer(props: SecurityHotspotsAppRe const element = selectedHotspot && document.querySelector(`[data-hotspot-key="${selectedHotspot.key}"]`); if (parent && element) { - scrollToElement(element, { parent, smooth: true, topOffset: 150, bottomOffset: 400 }); + scrollToElement(element, { parent, smooth: true, topOffset: 100, bottomOffset: 100 }); } }, [selectedHotspot]); -- 2.39.5