[Question]scroll-view为什么不是通过scroll-x和scroll-y来控制方向而是用样式
Open
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 611
- PR merge metrics
- No merged PRs in 30d
Description

这个用样式flex来控制,这导致子元素的高度被挤压得和scroll-view一样,我们得自己给子元素加一个flex-shrink=0才行
Contributor guide
Research direction
Start by reproducing the scroll-view layout shown in the issue and inspect how flex direction and child sizing interact. Compare the reported behavior with the intended scroll-x and scroll-y API, then check the project’s scroll-view entry point and related tests if they can be located. Done should include a decided direction for the API or behavior and a verified resolution for child shrinking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100