Getting the content dimensions of an overflow hidden/scroll node
Open
Nobody has claimed this yet.
Question
- Dominant language
- C++
- Stars
- 18.9k
- Forks
- 1.6k
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Hi, I am wondering how to get the content dimensions of a node when its overflow property is set to hidden or scroll. Of course I can iterate over the children and find out myself, but I assume Yoga already has that information from the layout calculations.
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Yoga's layout calculations for nodes whose overflow is set to hidden or scroll, and determine whether content dimensions are already available there. Done would mean establishing whether Yoga can expose those dimensions without iterating over children.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100