Skip to content
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

开启动画的 Tabs 下使用 Affix,Affix 内容在滚动后消失 #3943

Closed
yulanggong opened this issue Nov 21, 2016 · 4 comments
Closed
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@yulanggong
Copy link

发生问题的环境是:

  • antd 版本: 2.1.0
  • 操作系统及其版本: Win 10
  • 浏览器及其版本: Chrome 56, Edge 39

您做了什么?请提供尽可能详细的重现步骤。

开启动画的 Tabs 下使用了 Affix

您期待的结果是:

Affix 内容在滚动后能正常吸附

实际上的结果是:

Affix 内容在滚动后消失

可重现的在线演示

http://codepen.io/yulanggong/pen/GNWjbG?editors=001

可能的原因分析

关闭 Tabs 的动画后一切正常,bug 的原因是 transform 改变了 position: fixed 的上下文。

可能的解决方案

Tabs 做完切换动画后,使用代替的定位方式定位,移除 transform。

@benjycui benjycui added the 🐛 Bug Ant Design Team had proved that this is a bug. label Nov 22, 2016
@benjycui
Copy link
Contributor

benjycui commented Dec 6, 2016

@benjycui
Copy link
Contributor

benjycui commented Dec 6, 2016

antd 这边还需要升级依赖。

@yesmeck
Copy link
Member

yesmeck commented Dec 7, 2016

需要更新下 snapshot。

@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants