Skip to content

Commit

Permalink
fix(AdaptiveTabs): fix noOverflow check
Browse files Browse the repository at this point in the history
  • Loading branch information
artemipanchuk committed Mar 5, 2024
1 parent 3c3666c commit d950537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AdaptiveTabs/AdaptiveTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,8 @@ export class AdaptiveTabs<T> extends React.Component<AdaptiveTabsProps<T>, 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'
Expand Down

0 comments on commit d950537

Please sign in to comment.