-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Regression: Xamarin.Forms Button Image position broken on Android #4354
Comments
Possibly related to #2426 I can conditionally add top padding to compensate for now. |
@napalmDaz are you using Fast Renderers?? It looks like this PR needs to be copied to the Fast Renderer |
@PureWeen Unless fast renderers are enabled by default in XF3.3, then I don't think so as I'm not opting in via the flag in MainActivity. Here is a view hierarchy dump for confirmation: |
@napalmDaz Are you updated to AppCompat? The non AppCompat button renderer also doesn't have the code in place to preserve the padding so maybe that's it? |
@PureWeen Nuget: |
Alright I'm guessing it's this line Either way I've seen a few things that need to be fixed so we'll get this addressed. |
I have fixed this in #4967 |
I just upgraded Xamarin.Forms to version 3.6.0.220655 and the ImagePosition of the buttons was no longer as it should be. See attached picture with the buttons as they should be, and how they are in this latest version. I have downgraded Xamarin.Forms to version 3.1.0.697729 and the buttons are again as they should be. Kind regards, Saskia |
Description
When setting an image, text and ContentLayout on a button, the image is not positioned correctly on Android when using Xamarin Forms 3.3. This worked as expected in XF 3.1. iOS does not seem to be affected.
There are a couple problems here
Steps to Reproduce
Expected Behavior
Button image is centered as in previous versions (and also iOS) and relationship specified in ContentLayout is respected.
Actual Behavior
On Android, the button image is offset (no margin / padding) and not displayed in the expected location towards the center of the button.
Basic Information
Screenshots
https://imgur.com/f3PSDDA
The text was updated successfully, but these errors were encountered: