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

滚动条位置计算错误 #495

Open
fallenleavesguy opened this issue Jul 1, 2024 · 1 comment
Open

滚动条位置计算错误 #495

fallenleavesguy opened this issue Jul 1, 2024 · 1 comment

Comments

@fallenleavesguy
Copy link
Contributor

fallenleavesguy commented Jul 1, 2024

Versions

5.65.0

package version
react 18.3.1
rsuite-table 5.18.3

What is the expected behavior?

任何时间都显示正确的滚动位置。数据条目变化时,表格高度变化时,应重新计算滚动条位置

What is the current behavior?

高度变化时,滚动条位置显示错误。数据正滚动到中间位置,数据数据条目数量发生变化,滚动条也不会变化,导致当屏内容可能空白。

What are the steps to reproduce?

设置为fillHeight。实行以下步骤。

  1. 以半屏高度进入页面
  2. 滚动条拖拽到最底部,最往上滚动一段距离,使其不处于最底部。
  3. 加大浏览器高度到尽可能点满屏幕剩余空间
  4. 此时滚动条在窗口中下方,并不在最底部,但再往下滚动会发现无法滚动,因为内容已经到底部了

image

https://stackblitz.com/edit/react-vrjbei?file=package.json

Any additional comments? (optional)

@fallenleavesguy
Copy link
Contributor Author

自己动态指定height,滚动条不会有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant