Skip to content

Fix button size calculation in PopupButton for foreign langs - #100

Merged
deajan merged 2 commits into
spyoungtech:mainfrom
netinvent:fix-scaling-issues
Aug 21, 2026
Merged

Fix button size calculation in PopupButton for foreign langs#100
deajan merged 2 commits into
spyoungtech:mainfrom
netinvent:fix-scaling-issues

Conversation

@deajan

@deajan deajan commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

So using sg.popup("something", custom_text("Non", "Oui"))) would produce wrong sized buttons depending on used polices and systems. There is no specific rule as when text will be wrapped, mostly it's about one character since button size is done by len(text) calculation.

{DBB7C573-8C80-4791-BD92-915CAAFA712D}

Adding +1 to button size in order to deal with most of those problems

{A9583885-7429-41D8-B9ED-169602E473A6}

@deajan
deajan merged commit b893b21 into spyoungtech:main Aug 21, 2026
1 check 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.

1 participant