aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-07-21 12:00:43 +0200
committersonartech <sonartech@sonarsource.com>2022-07-22 20:03:01 +0000
commit5062e402789480b1ab7c3822d8bdc65c5a6bdcdc (patch)
tree008b5c5294aadc485ea3831e0f273619244685d0 /server
parentd64ee92295a48e1ce3c7af7fb7f6425bb38bada0 (diff)
downloadsonarqube-5062e402789480b1ab7c3822d8bdc65c5a6bdcdc.tar.gz
sonarqube-5062e402789480b1ab7c3822d8bdc65c5a6bdcdc.zip
SONAR-16598 Fixing scroll issue for security principles
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/components/rules/MoreInfoRuleDescription.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/rules/MoreInfoRuleDescription.tsx b/server/sonar-web/src/main/js/components/rules/MoreInfoRuleDescription.tsx
index da4df247e9d..306eb9f2dff 100644
--- a/server/sonar-web/src/main/js/components/rules/MoreInfoRuleDescription.tsx
+++ b/server/sonar-web/src/main/js/components/rules/MoreInfoRuleDescription.tsx
@@ -43,7 +43,7 @@ export default class MoreInfoRuleDescription extends React.PureComponent<Props,
handleNotificationScroll = () => {
const element = this.props.educationPrinciplesRef?.current;
if (element) {
- element.scrollIntoView();
+ element.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });
}
};