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

Core: better approximation for Label desired size #26

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

webwarrior-ws
Copy link
Collaborator

When getting desired size with constraints (0, infinity), instead of trying to fit the text by splitting it into as many lines as possible (which can lead to too much requested height), try to approximate size of a square block of text.

When getting desired size with constraints (0, infinity),
instead of trying to fit the text by splitting it into as many
lines as possible (which can lead to too much requested
height), try to approximate size of a square block of text.
@webwarrior-ws webwarrior-ws marked this pull request as ready for review June 10, 2024 09:30
@knocte knocte merged commit d73c966 into nblockchain:master Jun 10, 2024
2 checks passed
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