-
-
Notifications
You must be signed in to change notification settings - Fork 121
数据在更新之后列表高度没有刷新 #974
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
@58bcbedf47bd91439c 这是使用的 |
|
@58bcbedf47bd91439c 升级到 |
你好,我找到原因了, offsetHeight 包括元素的边框、内边距和滚动条(如果存在)的高度,代码中额外增加了, 这是示例 https://codesandbox.io/s/fast-fog-lh8dlx?file=/src/App.js |
@58bcbedf47bd91439c 不需要这个高度? |
高度计算重复了 |
@58bcbedf47bd91439c https://codesandbox.io/embed/quizzical-curran-jh78pg?fontsize=14&hidenavigation=1&theme=dark 上面是不需要更新即可解决问题 <Collapse.Panel header="Test1">
<div>
</div>
</Collapse.Panel> 在 |
|
test.mp4
The text was updated successfully, but these errors were encountered: