Closed esskar closed 5 years ago
I have the same issue, however in my case I don't have an icon but just plain text. On iOS the text is aligned to the center even without setting the HorizontalOptions
property. On Android the text is aligned to left, setting the HorizontalOptions
is not working either.
<flexButton:FlexButton Grid.Row="1" CornerRadius="33" WidthRequest="300" HeightRequest="60" BackgroundColor="{StaticResource darkGreyBlue}" HorizontalOptions="CenterAndExpand" Text="Get started" FontFamily="{StaticResource MediumFont}" ClickedCommand="{Binding GetStartedCommand}"
/>
Using the latest and greatest XF and lib version.
Turns out, that it does respect the HorizontalOptions
, when a HeightRequest
is set. Strange, I will look into this!
Fixed in version 0.9.0: https://www.nuget.org/packages/Forms.Controls.FlexButton/0.9.0
Describe the bug Choosing HorizontalOptions="Start" aligns text-only buttons to the left, when adding an icon, everything is centered aligned again.
To Reproduce
Expected behavior I would expect that icon and text are left aligned.