react-component / react-component/virtual-list

[QUESTION]有缩放的弹窗里滚动条无法滚动到底部

Open
#258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
814
Forks
171
Avg merge
1h 3m
Merged PRs (30d)
3

Description

  1. 有个div弹窗,弹窗显示有scale动画
  2. 弹窗里virtualList
  3. 这时候virtualList就无法滚动到底部,因为virtualList获取高度的时候,获取到的是scale动画还没结束的时候,高度是缩放时候的高度

请问

  • 如何解决这个问题
  • 或者如何让virtualList重新获取高度

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing a virtualList inside a div popup while its scale animation runs, then inspect when the list measures its height; done means the list can scroll to the bottom after the popup reaches its final scale or has a documented way to refresh its measurement.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.