You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 3 cases when handling responsive tabs: 
187
184
188
-
We get hidden tabs through [useVisibleRange.ts](https://github.com/react-component/tabs/blob/master/src/hooks/useVisibleRange.ts).
189
-
If enconter the third case, in order to make tabs responsive, some tabs should be hidden.
190
-
So we minus `addSize` when calculating `basicSize` manully, even though there's no addNode in container.
191
-
In this way, case 3 turns to case 2, tabs become stable again.
185
+
We get hidden tabs through [useVisibleRange.ts](https://github.com/react-component/tabs/blob/master/src/hooks/useVisibleRange.ts). If enconter the third case, in order to make tabs responsive, some tabs should be hidden. So we minus `addSize` when calculating `basicSize` manully, even though there's no addNode in container. In this way, case 3 turns to case 2, tabs become stable again.
0 commit comments