Skip to content

[iOS] Image on Button doesn't properly centered when setting ContentLayout to Top and text has 2 or more lines. #23635

@mecvillarina

Description

@mecvillarina

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

Metadata

Metadata

Assignees

Labels

area-controls-buttonButton, ImageButtonfixed-in-8.0.90fixed-in-9.0.0-rc.2.24503.2p/1Work that is important, and has been scheduled for release in this or an upcoming sprintpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions