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

Compose UI Box stretch only partially working #2005

Open
JakeWharton opened this issue May 1, 2024 · 0 comments
Open

Compose UI Box stretch only partially working #2005

JakeWharton opened this issue May 1, 2024 · 0 comments

Comments

@JakeWharton
Copy link
Member

From @colinrtwhite in #1854:

This PR avoids adding support for the case where CrossAxisAlignment.Stretch and Constraint.Wrap are applied along the same axis. This is a bit tough to implement in Compose UI since we can only call Measureable.measure at most once, which means measuring the child locks its size and it can't be expanded to fill the size of the largest item in the box.

I think we might be able to implement this with a combination of Measurable.[min/max]Intrinsic[Width/Height], but I'll tackle that in a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant