react / react/yoga

Getting the content dimensions of an overflow hidden/scroll node

Open
#623 5 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.