From b3de1791e0c7a9ff4cd6eb338b9e3725f1839232 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 18 Mar 2022 12:50:44 +0300 Subject: [PATCH] Use scrollIntoViewIfNeeded in tabs Signed-off-by: Alex Andreev --- src/renderer/components/tabs/tabs.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/renderer/components/tabs/tabs.tsx b/src/renderer/components/tabs/tabs.tsx index fd33368ada..3913886365 100644 --- a/src/renderer/components/tabs/tabs.tsx +++ b/src/renderer/components/tabs/tabs.tsx @@ -81,10 +81,7 @@ export class Tab extends React.PureComponent { } scrollIntoView() { - this.ref.current?.scrollIntoView?.({ - behavior: "smooth", - inline: "center", - }); + this.ref.current?.scrollIntoViewIfNeeded(); } @boundMethod