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

Card与Affix混合使用当Affix进行定位后,Affix的DOM元素hover时会被隐藏不可见 #4800

Closed
wonyun opened this issue Feb 8, 2017 · 7 comments
Assignees

Comments

@wonyun
Copy link
Contributor

wonyun commented Feb 8, 2017

Environment(required)

  • antd version: 2.5.2
  • OS and its version: mac
  • Browser and its version: chrome 55.0.2883.95 (64-bit)

What did you do? Please provide steps to re-produce your problem.

Card与Affix混合使用时,Affix作为Card的子元素,当达到指定条件Affix定位后,鼠标hover到Affix的dom元素上,其dom元素不可见

What do you expected?

affix的内容可见

What happen?

Re-producible online demo

事例:https://codepen.io/fetest/pen/jyvpbB?editors=0010

@wonyun wonyun changed the title Card与Affix混合使用当Affix进行定位后,Affix的hover状态时会被隐藏不可见 Card与Affix混合使用当Affix进行定位后,Affix的DOM元素hover时会被隐藏不可见 Feb 8, 2017
@RaoHai
Copy link
Contributor

RaoHai commented Feb 8, 2017

看了一下 DEMO ,怎么操作能重现 “其dom元素不可见”,感觉挺正常。。

@afc163
Copy link
Member

afc163 commented Feb 8, 2017

缩小垂直视窗,向下滚动。

@RaoHai
Copy link
Contributor

RaoHai commented Feb 9, 2017

。。居然只能在 retina 屏上复现。。

@RaoHai
Copy link
Contributor

RaoHai commented Feb 9, 2017

感觉好像是 chrome 的 bug ?

https://github.com/ant-design/ant-design/blame/master/components/card/style/index.less#L16

这个 z-index:1 的影响,去了就好了。 firefox,safari,和 chrome 在非 retina 屏下都无法复现。。。 @afc163

@afc163
Copy link
Member

afc163 commented Feb 9, 2017

蛋疼。先去掉好了。

@wonyun
Copy link
Contributor Author

wonyun commented Feb 9, 2017

@afc163 @RaoHai 👍👍👍

@lock
Copy link

lock bot commented May 2, 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 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants