-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Table组件的ant-spin在可滚动区域的定位问题 #2652
Comments
不是很能理解,能再详细描述下? |
然后像我的操作一样,当Table上面那个元素变化后, |
理解起来比较难,但我觉得上面这样可以修复。 |
嗯,确实可以修复。 |
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. |
本地环境
可重现的在线演示
http://codepen.io/anon/pen/LkXbPp?editors=0010
将Table放置于一个固定高度的可滚动区域内,在Table之前设置一个可变高度的DIV。
点击展开按钮,灰色区域会逐渐增加,当灰色区域增高到超过一定程度之后(超过窗口高度),会发现一开始不能滚动的Body区域可以滚动了,Body区域的高度增加了。Debug发现是因为
<div class="ant-spin"></div>
这个元素是绝对定位的,但没有设定具体定位的值,且外层也没有position为非static的元素让它相对其定位。它会随着灰色区域的增高和增加top值,最后就会顶出<div class="box"></div>
的区域。正常时候的情况:
不正常时候的情况:
The text was updated successfully, but these errors were encountered: