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

iOS: Button not resizing on text Change #25074

Closed
asi-evin opened this issue Oct 3, 2024 · 1 comment · Fixed by #25122
Closed

iOS: Button not resizing on text Change #25074

asi-evin opened this issue Oct 3, 2024 · 1 comment · Fixed by #25122
Assignees
Labels
area-controls-button Button, ImageButton fixed-in-8.0.92 fixed-in-9.0.10 p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Milestone

Comments

@asi-evin
Copy link

asi-evin commented Oct 3, 2024

Description

When you change the text of a button, the button no longer resizes to accomadate the new text. This seems to be a very recent issue with iOS only as this used to work in 8.0.82.

Steps to Reproduce

  1. Create a fresh MAUI sample.
  2. In "MainPage.xaml", change the button Property "HorizontalOptions" from "Fill" to "Center" like so:
<Button
    x:Name="CounterBtn"
    Text="Click me" 
    SemanticProperties.Hint="Counts the number of times you click"
    Clicked="OnCounterClicked"
    HorizontalOptions="Center" />
  1. Run the program.
  2. Press the button.

Expected Result: The button resizes when the text changes.

Actual Result: The button does not resize and the text is clipped.

Link to public reproduction project repository

None. Simple enough to create from starting template.

Version with bug

8.0.91 SR9.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.82 SR8.2

Affected platforms

iOS

Affected platform versions

iOS 17.6.1

Did you find any workaround?

No.

Screenshot

IMG_0201 1

@asi-evin asi-evin added the t/bug Something isn't working label Oct 3, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@PureWeen PureWeen added the potential-regression This issue described a possible regression on a currently supported version., verification pending label Oct 3, 2024
@PureWeen PureWeen added this to the .NET 8 SR9.2 milestone Oct 3, 2024
@PureWeen PureWeen added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label Oct 3, 2024
@jfversluis jfversluis added the area-controls-button Button, ImageButton label Oct 4, 2024
@tj-devel709 tj-devel709 moved this from Todo to In Progress in MAUI SDK Ongoing Oct 7, 2024
@github-project-automation github-project-automation bot moved this from Ready To Review to Done in MAUI SDK Ongoing Oct 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 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-8.0.92 fixed-in-9.0.10 p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants