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

Use correct first bucket during grow #28

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Conversation

grovesNL
Copy link
Contributor

Fixes a regression caused by using the wrong next bucket in #27 Confirmed to work with iced's tour example.

I think this is correct but it would be helpful if anyone could double check the first_bucket logic here.

Also updated the grow_horizontally example to avoid the allocation failing after resize because of shelf height. I'd like to double check that this expectation change is ok with @hecrj before merging.

@hecrj
Copy link
Contributor

hecrj commented Nov 11, 2023

Awesome! I just confirmed it fixes iced-rs/iced#2132. Thank you!

I'd like to double check that this expectation change is ok with @hecrj before merging.

It's fine with me! We don't rely on the grow behavior directly; as long as glyphon works well that should be enough for us.

But since we are changing semantics, this should probably be released as a new minor version. There may be other libraries relying on the current grow behavior.

@grovesNL grovesNL changed the title First bucket Use correct first bucket during grow Nov 11, 2023
@nicksenger
Copy link

nicksenger commented Nov 16, 2023

Awesome! Confirmed this also fixes an Iced issue I was wrestling with rendering text in languages with many characters (which is present on 0.2.8)

@nical
Copy link
Owner

nical commented Nov 17, 2023

Thanks!

@nical nical merged commit 92d33fd into nical:main Nov 17, 2023
2 checks passed
@grovesNL grovesNL deleted the first-bucket branch November 20, 2023 02:14
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.

4 participants