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] Image on Button doesn't properly centered when setting ContentLayout to Top and text has 2 or more lines. #23635

Closed
mecvillarina opened this issue Jul 16, 2024 · 3 comments · Fixed by #22476
Assignees
Labels
area-controls-button Button, ImageButton fixed-in-8.0.90 fixed-in-9.0.0-rc.2.24503.2 p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@mecvillarina
Copy link

mecvillarina commented Jul 16, 2024

Description

Image on Button doesn't properly centered when setting ContentLayout to Top and text has 2 or more lines. Please attached image

Screenshot 2024-07-16 at 11 02 51 PM

Steps to Reproduce

  1. Create a new MAUI App
  2. Add the following lines on the MainPage.cs
    <Button ImageSource="ic_heart" LineBreakMode="WordWrap" Text="Add Waypoint" ContentLayout="Top,2" HorizontalOptions="Center" HeightRequest="150" WidthRequest="100" BackgroundColor="Blue" TextColor="White"/>
  3. Use the attached asset for your testing
    ic_heart
  4. Run the App.

Link to public reproduction project repository

https://github.com/mecvillarina/PocMaui

Version with bug

8.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15

Did you find any workaround?

No response

Relevant log output

No response

@mecvillarina mecvillarina added the t/bug Something isn't working label Jul 16, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 17, 2024
@RoiChen001
Copy link

I can repro this issue at iOS platform on the latest 17.16.12 (build 410) (8.0.40&8.0.60).

@mikeparker104 mikeparker104 added the partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with label Jul 18, 2024
@PureWeen PureWeen added this to the .NET 8 SR9 milestone Jul 18, 2024
@tj-devel709
Copy link
Member

image

Hello, looks like this will be fixed in this PR: #22476!

@samhouts samhouts added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label Aug 1, 2024
@github-project-automation github-project-automation bot moved this from Ready To Review to Done in MAUI SDK Ongoing Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 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.90 fixed-in-9.0.0-rc.2.24503.2 p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants