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

Add Padding for iOS Buttons in some scenarios #24760

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Conversation

tj-devel709
Copy link
Member

@tj-devel709 tj-devel709 commented Sep 13, 2024

Description of Change

#24746 contains a full description, but essentially, there are edge cases where the user can set padding that is too small for iOS to lay out the button. Prior to changes in SR9, some of these situations looked okay because values for padding and spacing were not always respected. This PR makes it so if the padding set by the user is too small for the title and image in certain situations (described here), the padding will be increased. If the padding is already sufficient, no change will be made.

Before After

Issues Fixed

#24746
#24735

@tj-devel709 tj-devel709 force-pushed the dev/TJ/iOSButtonPadding branch from 8b3a028 to 2f8ed52 Compare September 16, 2024 14:40
@PureWeen PureWeen merged commit 60076be into main Sep 19, 2024
97 checks passed
@PureWeen PureWeen deleted the dev/TJ/iOSButtonPadding branch September 19, 2024 10:38
@PureWeen
Copy link
Member

/backport to release/8.0.1xx-sr9

Copy link
Contributor

Started backporting to release/8.0.1xx-sr9: https://github.com/dotnet/maui/actions/runs/10939334860

@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Sep 20, 2024
redducks100 pushed a commit to redducks100/maui that referenced this pull request Sep 24, 2024
* Add padding for buttons that need it and UITest

* lost some spaces in the xaml

* android and windows screenshot
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Oct 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-button Button, ImageButton fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release! platform/iOS 🍎
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants