Skip to content

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

Merged
jneem merged 1 commit intolinebender:masterfrom
jneem:scroll-size
Sep 9, 2020
Merged

Don't make Scroll bigger than its child on the non-scrolling axis.#1198
jneem merged 1 commit intolinebender:masterfrom
jneem:scroll-size

Conversation

@jneem
Copy link
Member

@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