Skip to content

Commit caec3cf

Browse files
authored
fix: The OperationNode will repeatedly change status between appearing and disappearing. (#730)
1 parent 2648b6d commit caec3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TabNavList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const TabNavList = React.forwardRef<HTMLDivElement, TabNavListProps>((props, ref
150150
const addSizeValue = getUnitValue(addSize, tabPositionTopOrBottom);
151151
const operationSizeValue = getUnitValue(operationSize, tabPositionTopOrBottom);
152152

153-
const needScroll = containerExcludeExtraSizeValue < tabContentSizeValue + addSizeValue;
153+
const needScroll = Math.floor(containerExcludeExtraSizeValue) < Math.floor(tabContentSizeValue + addSizeValue);
154154
const visibleTabContentValue = needScroll
155155
? containerExcludeExtraSizeValue - operationSizeValue
156156
: containerExcludeExtraSizeValue - addSizeValue;

0 commit comments

Comments
 (0)