-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab component starts flickering if inside flex container #44668
Comments
我来试试 |
因为当flex布局时,元素的offsetLeft+width大于容器宽度后,就会显示operationNode,但是,是实时计算的就会出现闪屏的现象,那怎么优化useVisibleRange方法呢?? |
我提个PR看看 |
Any news on the progress of the PR? |
It's very annoying |
Sorry. Probably be later because im busy with interviews. |
Hey guys, applied this patch with patch-package and the issue still happens ( a lot less ). NOTE: Actually the patch was not being correctly applied. After applying correctly, it worked 👍 |
I have same issue |
@Comum can you show how exactly you applied a patch? |
I used patch-package on my project.
|
Reproduction link
Steps to reproduce
Nest Tabs component in a div that has dynamic width ( flex wrapper ) the tab items start flickering. Check the codesandbox example.
What is expected?
Wanted to vertically centre the Tabs component.
What is actually happening?
Tabs component is centered but there is a flick because of the .ant-tabs- nav-operations and the ellipsis button.
The text was updated successfully, but these errors were encountered: