Skip to content

Revert - Fixed the Label not sized correctly on Android (#30023) #30076

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

PureWeen
Copy link
Member

Description of Change

Backport of #30023 to SR8

* Reverting the OnMeasure changes and 27614 test cases

* Resaved the Android images

* Change in unshipped file
# Conflicts:
#	src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
@Copilot Copilot AI review requested due to automatic review settings June 19, 2025 17:48
@PureWeen PureWeen requested a review from a team as a code owner June 19, 2025 17:48
@PureWeen PureWeen requested review from jsuarezruiz and Aguilex June 19, 2025 17:48
@PureWeen
Copy link
Member Author

/azp run

Copy link

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

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Backports the revert of the Android Label sizing fix (removing the custom OnMeasure logic) to the SR8 branch, and updates tests accordingly.

  • Removes the OnMeasure override and helper from MauiTextView on Android
  • Updates PublicAPI to reflect removal of that override
  • Cleans up old tests for issue 27614 and adds a new test and HostApp page for issue 29542

Reviewed Changes

Copilot reviewed 6 out of 25 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt Marks the MauiTextView.OnMeasure override as removed in Unshipped API
src/Core/src/Platform/Android/MauiTextView.cs Deletes the custom OnMeasure override and GetMaxLineWidth helper
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue29542.cs Adds a new UI test for label sizing in a CollectionView scenario
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue27614.cs Removes old tests covering the previous label sizing issue
src/Controls/tests/TestCases.HostApp/Issues/Issue29542.cs Adds a HostApp page to exercise the new CollectionView test
src/Controls/tests/TestCases.HostApp/Issues/Issue27614.cs Removes the HostApp page for the old label sizing tests

@PureWeen PureWeen merged commit 2ecc375 into release/9.0.1xx-sr8 Jun 20, 2025
7 checks passed
@PureWeen PureWeen deleted the backport_revert_27614 branch June 20, 2025 16:05
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.

3 participants