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
<Drawer> showing animation is jiggling if the content is changing size. #29178
Comments
请用chrome测试,我在firefox上没试出来。有可能某些参数要微调一下。 |
没看到问题,来个录屏? |
我的机器上貌似很难重现这个问题。 |
@afc163 根据我的测试,只有chrome会这样。firefox和ios不会。直接使用rc-drawer也会这样。 这是对this.levelDom数组中每个元素监听transition end的回调。 我在使用rc-drawer的时候,发现drawer在升上来的时候,整个body的滚动条在往下滚动,是不是这样造成的抖动啊。(level=null的时候,body就不会往上滚动。还不是很会使用rc-drawer, 好像rc-drawer的示例里,都是drawer出现的时候,把整个页面往上顶的。antd drawer是覆盖在页面上的)。不是很清楚。 明天我会继续研究一下。 |
看上去可以优化一下,让 transitionEnd 事件只对绑定的元素生效。 |
算了,level=null的时候,抖动效果很微弱。明天再看。 |
https://codesandbox.io/s/amazing-tharp-bnmln?file=/src/App.js 我感觉关键的地方就是,设置 我觉得是chrome本身的bug。 |
@heroboy 看看最新版本是否还存在这个问题。 |
@afc163
你想close就close吧。 |
@afc163 |
也就是现在没现场了是吧? |
@afc163 |
可以拿 codepen 或 stackblitz 测。 |
先关了,有重现再开。 |
Reproduction link
Steps to reproduce
首先body要有滚动条。在Drawer的显示过程中,内容逐渐增加大小发生变化。
What is expected?
正常动画
What is actually happening?
显示动画抖动。消失动画也不正常。
The text was updated successfully, but these errors were encountered: