-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Button RTL text and image overlap iOS #29036
Copy link
Copy link
Closed
Labels
area-controls-buttonButton, ImageButtonButton, ImageButtonarea-localizationLocalization and globalization issuesLocalization and globalization issuesp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releaseplatform/ioss/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-controls-buttonButton, ImageButtonButton, ImageButtonarea-localizationLocalization and globalization issuesLocalization and globalization issuesp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releaseplatform/ioss/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
When using a Button control with text and an image, it's noticed when the FlowDirection is set to RightToLeft, the text and image can start to overlap. It's most noticible when using smaller images such as when using a glyph inside a FontImageSource. This only effects iOS and is not reproducible on Windows or Android.
LeftToRight

RightToLeft

Steps to Reproduce
<Grid WidthRequest="400"> <Button x:Name="aboutAppButton" BackgroundColor="LightGreen" Text="This is a Regular Button" FontSize="24" TextColor="Black" VerticalOptions="Center"> <Button.ImageSource> <FontImageSource Glyph="" Size="24" Color="Black" FontFamily="OpenSansRegular" /> </Button.ImageSource> </Button> </Grid>Link to public reproduction project repository
No response
Version with bug
9.0.50 SR5
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 18
Did you find any workaround?
Separate out the Image and Text from Button to be a Image and Label control within a Layout with a TapGestureRecognizer.
Relevant log output