From d9505371d49c5dca9a43a98d9400208082dc6811 Mon Sep 17 00:00:00 2001 From: Artem Panchuk Date: Tue, 5 Mar 2024 13:01:30 +0300 Subject: [PATCH] fix(AdaptiveTabs): fix noOverflow check --- src/components/AdaptiveTabs/AdaptiveTabs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AdaptiveTabs/AdaptiveTabs.tsx b/src/components/AdaptiveTabs/AdaptiveTabs.tsx index c75270a7..d667e7be 100644 --- a/src/components/AdaptiveTabs/AdaptiveTabs.tsx +++ b/src/components/AdaptiveTabs/AdaptiveTabs.tsx @@ -838,7 +838,8 @@ export class AdaptiveTabs extends React.Component, Adapt const isLastTab = item.id === items[items.length - 1].id && tabIndex === items.length - 1; const noOverflow = needSetMaxWidth && - this.overflownTabsRealWidth[tabIndex] === this.overflownTabsCurrentWidth[tabIndex]; + this.overflownTabsRealWidth[tabIndex] === + this.overflownTabsCurrentWidth[tabIndex] + this.tabItemPaddingRight; const maxWidth = dimensionsWereCollected && typeof this.overflownTabsCurrentWidth[tabIndex] === 'number'