-
Notifications
You must be signed in to change notification settings - Fork 176
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
feat(PortaWrapper): add switchScrollingEffect func #65
Conversation
|
close 的时机是由 |
@jljsj33 看下还有问题没 |
没有,多测测,,,你合下吧,,,能发不??? |
不能…… |
理解错了,可以发,我合下你帮忙发下版吧 |
我发 4.16, ,你呆会写下 changelog |
嗯,等到家了写下,写好我直接合,明天我调下 dialog 和 drawer |
4.16.1,, 4.16.0 发挂了 |
switchScrollingEffect.js 中的isBodyOverflowing方法,在下面一种场景中有点欠缺: 在全局的body的样式上增加了overflow-y:scroll,至于为什么要加,原因是想解决左侧菜单栏切换,右侧对应的内容有无溢出不会出现页面抖动的问题。 如果把这个样式设置到html 上,虽然没上述问题,但是在结合弹框Modal 使用时,就会出现弹框的遮罩层遮不住滚动条,也有点不合适。 在上面这种场景下,isBodyOverflowing期望是被返回true 的。 |
是个优化的点,需要增强一下 isBodyOverflowing,这个函数是判断页面高度是否超出可视高度来得到结果的,像你所描述的写死成滚动,但是实际没有超出,确实会 |
Ref:
react-component/drawer#119
ant-design/ant-design#19956