This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Button image is not centered #5861
Labels
Comments
@mattleibow I guess we didn't fix 'em all 😆 (referring to #4967) |
Is a fix expected to be applied soon? My image verification tests have failed because of this issue. 😄 |
A way to get around this problem is using ImageButton intead of Buttton, for now. |
@CoffeePerry Thanks for the workaround. I have tested it and it works. For now I will use it. Still, I hope as the issue was introduced with one of the latest official releases to be addressed and fixed soon. Thanks again. |
@APopatanasov You're welcome |
You solved, thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
I found a problem in Button's image centering when Application.MainPage property is set to a NavigationPage: image will be positioned on the left in the button, instead of in the center.
In App.xaml.cs, using:
MainPage = new NavigationPage(new HomePage());
Instead of:
MainPage = new HomePage();
In HomePage's buttons, images will be on the left instead of the center.
P.S.: I found this problem only in Android.
Steps to Reproduce
MainPage = new NavigationPage(new HomePage());
Expected Behavior
In HomePage, buttons images are on the center.
Actual Behavior
In HomePage, buttons images are on the left.
Basic Information
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: