Skip to content

Add Padding for iOS Buttons in some scenarios#24760

Merged
PureWeen merged 3 commits into
mainfrom
dev/TJ/iOSButtonPadding
Sep 19, 2024
Merged

Add Padding for iOS Buttons in some scenarios#24760
PureWeen merged 3 commits into
mainfrom
dev/TJ/iOSButtonPadding

Conversation

@tj-devel709

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

Copy link
Copy Markdown
Member

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
@PureWeen PureWeen deleted the dev/TJ/iOSButtonPadding branch September 19, 2024 10:38
@PureWeen

Copy link
Copy Markdown
Member

/backport to release/8.0.1xx-sr9

@github-actions

Copy link
Copy Markdown
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