Skip to content

Comments

Fix button size calculation in PopupButton for foreign langs#100

Open
deajan wants to merge 1 commit intospyoungtech:mainfrom
netinvent:fix-scaling-issues
Open

Fix button size calculation in PopupButton for foreign langs#100
deajan wants to merge 1 commit intospyoungtech:mainfrom
netinvent:fix-scaling-issues

Conversation

@deajan
Copy link
Contributor

@deajan deajan commented Feb 20, 2026

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}

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