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

Don't make Scroll bigger than its child on the non-scrolling axis. #1198

Merged
merged 1 commit into from
Sep 9, 2020
Merged

Don't make Scroll bigger than its child on the non-scrolling axis. #1198

merged 1 commit into from
Sep 9, 2020

Conversation

jneem
Copy link
Collaborator

@jneem jneem commented Sep 9, 2020

This undoes another change from #1107 that I think was a regression.

For example, if I have a horizontal scroll whose child has a finite height, I think that the scroll should inherit that same height. After #1107, the scroll would instead make its height as large as possible.

@jneem jneem requested a review from ForLoveOfCats September 9, 2020 04:03
Copy link
Collaborator

@ForLoveOfCats ForLoveOfCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this seems right and matches how the old Scroll calculated its size. If it needs to expand that's what SizeBox is for.

In my defense that patch went through a lot of iterations. I'm glad these things which fell through the cracks are being caught before 0.7 drops :)

@jneem jneem merged commit 469fe25 into linebender:master Sep 9, 2020
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

Successfully merging this pull request may close these issues.

2 participants