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

fix max width being reduced by padding in number_input #285

Conversation

StillGreen-san
Copy link
Contributor

this prevents the max width of the number_input widget from being reduced by the padding

in this example we have a row with 3 collumns filled with buttons (set to fill) and the number_input (with 22 padding) in the middle.
left is before, right with this change
2024-09-03-18-18_number_input 2024-09-03-18-18_number_input (2)

the call to shrink may have been used here to apply padding to the content, but the padding is already set on the content itself so this is not needed

Copy link
Collaborator

@genusistimelord genusistimelord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@genusistimelord genusistimelord merged commit 8c0f4c1 into iced-rs:main Sep 3, 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