Skip to content

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

Merged
PureWeen merged 3 commits into
release/8.0.1xx-sr9from
dev/TJ/ButtonTextChangeUpdate_backportToSR9
Oct 14, 2024
Merged

[release/8.0.1xx-sr9] Fix Regression with iOS button resizing with text or image change#25214
PureWeen merged 3 commits into
release/8.0.1xx-sr9from
dev/TJ/ButtonTextChangeUpdate_backportToSR9

Conversation

@tj-devel709

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

/azp run

@azure-pipelines

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

@tj-devel709

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

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

@PureWeen

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@tj-devel709

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

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

@tj-devel709

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

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