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

Unable to hide View component's children on overflow #2901

Open
crohn opened this issue Oct 9, 2024 · 0 comments
Open

Unable to hide View component's children on overflow #2901

crohn opened this issue Oct 9, 2024 · 0 comments

Comments

@crohn
Copy link

crohn commented Oct 9, 2024

Hello, I'm trying to implement the layout shown below on the left (Yoga) using @react-pdf/renderer. On the right you can see that I'm pretty far from reaching my goal.

desired actual

I have a View that, as children, receives a list of Text components, which get shrunk instead of keeping their height and getting hidden when they overflow the container. In the screenshot above, what's happening is that each Text content overflows and overlaps onto the following Text block.

image image

I set up this REPL to explain what I tried so far. In the REPL, I set the container styling to { overflow: 'hidden' }, but the children's overflowing text keeps overlapping and only the text overlapping to the green area gets hidden.

I would like to ask if I am overlooking some styling properties, and the solution is just in front of me, or the current behaviour is the expected one and there is no way to get the layout setup I'm trying to get.

I'm not sure if this is related to #2476.

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