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

ComboBox width #11

Closed
wants to merge 1 commit into from
Closed

Conversation

AlexKnauth
Copy link
Contributor

Sets the ComboBox width to be approximately the width of the 7/8ths-percentile option description. The goal is to have at least 7 out of every 8 option descriptions not have to be line-wrapped on average.

I think this goes by bytes, not by chars or grapheme clusters, and certainly not by precise rendered width of anything, but if that kind of unicode weirdness only affects less than 1/8th of the option descriptions, I hope this is a good enough approximation.

@CryZe
Copy link
Collaborator

CryZe commented Aug 31, 2024

Can you attach some screenshots of the situation before / after?

@AlexKnauth
Copy link
Contributor Author

AlexKnauth commented Aug 31, 2024

When I first opened this PR last year, most of my choice options were line-wrapped onto multiple lines. I made this PR and started using it myself instead of master, so I hadn't noticed, the problem seems to be fixed now. I went to make a screenshot of "before" and it seems fine:
ASR-Debugger-Choice-Width

I can close this PR now.

Fixed in master by #18

@AlexKnauth AlexKnauth closed this Aug 31, 2024
@AlexKnauth AlexKnauth deleted the choice-width branch August 31, 2024 22:24
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