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

Popover 设定了 getTooltipContainer 会导致 内嵌的 DatePicker 样式失效 #2675

Closed
abbish opened this issue Aug 10, 2016 · 13 comments
Closed
Assignees

Comments

@abbish
Copy link

abbish commented Aug 10, 2016

Popover 设定了 getTooltipContainer 会导致 内嵌的 DatePicker 样式失效

如图,设置了getTooltipContainer,日期表格样式错乱,ant design 版本 1.6.5

screen shot 2016-08-10 at 5 20 44 pm

screen shot 2016-08-10 at 5 20 34 pm

@afc163
Copy link
Member

afc163 commented Aug 10, 2016

可否不设?

@abbish
Copy link
Author

abbish commented Aug 10, 2016

不设会随页面滚动

@afc163
Copy link
Member

afc163 commented Aug 10, 2016

那就设到 Table 的 parentNode 上,避开 table 样式。

@abbish
Copy link
Author

abbish commented Aug 10, 2016

不好使,跳出了 ant-table 的 div 后就开始随页面滚动了,而且代码看上去很尴尬这样

screen shot 2016-08-10 at 6 00 00 pm

screen shot 2016-08-10 at 6 00 06 pm

@benjycui
Copy link
Contributor

benjycui commented Aug 11, 2016

给 Table 加个 wrapper,container 设为该 wrapper

又犯二了。。。

@afc163
Copy link
Member

afc163 commented Aug 11, 2016

是固定表头的 Table 么?

要不搞个重现方便调试吧:http://codepen.io/anon/pen/wGOWGW?editors=001

@afc163
Copy link
Member

afc163 commented Aug 11, 2016

如果是上条说的那样,可能需要改下 date-picker 的样式了,确保不会被 Table 影响。

@abbish
Copy link
Author

abbish commented Aug 11, 2016

重现地址:http://codepen.io/abbish/pen/jAXxZL

@afc163
Copy link
Member

afc163 commented Aug 11, 2016

试试 http://codepen.io/anon/pen/RREJJV

@afc163 afc163 assigned afc163 and unassigned RaoHai Aug 14, 2016
@afc163 afc163 closed this as completed Aug 14, 2016
@abbish
Copy link
Author

abbish commented Aug 15, 2016

抱歉回复晚了,我之前在纳闷为什么你的 case 中是可以固定,而我的不可以,请看我的例子

http://codepen.io/abbish/pen/OXdwYq

@afc163
Copy link
Member

afc163 commented Aug 15, 2016

http://codepen.io/anon/pen/KrJxPp

需要相对父容器定位。

@abbish
Copy link
Author

abbish commented Aug 15, 2016

多谢,成功了

@lock
Copy link

lock bot commented May 4, 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 4, 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

4 participants