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

[release/8.0.1xx-sr9] Fix Regression with iOS button resizing with text or image change #25214

Merged

Conversation

tj-devel709
Copy link
Member

Description of Change

This PR fixes a regression with iOS buttons re-updating the size of the button when the text changes. There was some code that was trying to use the UIButton.TitleLabel.Bounds for sizing, but there are times the TitleLabel is still set to the old title. This PR also allows changes to the button size when the image is changed.

Issues Fixed

Fixes #25074

Small demo showing changing text and images triggers a resize when needed. The small jump in animation was already there and is not new to this PR.

Screen.Recording.2024-10-07.at.4.01.35.PM.mov

@tj-devel709 tj-devel709 requested a review from a team as a code owner October 11, 2024 20:31
@tj-devel709 tj-devel709 requested review from mattleibow and rmarinho and removed request for a team October 11, 2024 20:31
@tj-devel709 tj-devel709 force-pushed the dev/TJ/ButtonTextChangeUpdate_backportToSR9 branch from 8d96182 to 9f2a919 Compare October 11, 2024 20:33
@tj-devel709
Copy link
Member Author

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@tj-devel709
Copy link
Member Author

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@PureWeen
Copy link
Member

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@tj-devel709
Copy link
Member Author

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@tj-devel709
Copy link
Member Author

/azp run

Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@PureWeen PureWeen changed the title [Backport] Fix Regression with iOS button resizing with text or image change [release/8.0.1xx-sr9] Fix Regression with iOS button resizing with text or image change Oct 14, 2024
@PureWeen PureWeen merged commit 0294301 into release/8.0.1xx-sr9 Oct 14, 2024
60 of 61 checks passed
@PureWeen PureWeen deleted the dev/TJ/ButtonTextChangeUpdate_backportToSR9 branch October 14, 2024 16:45
@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants