Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Line Labels in Buttons #11

Closed
AndyT4ME opened this issue Nov 14, 2017 · 4 comments
Closed

Multi Line Labels in Buttons #11

AndyT4ME opened this issue Nov 14, 2017 · 4 comments

Comments

@AndyT4ME
Copy link

AndyT4ME commented Nov 14, 2017

I noticed a difference when deploying to iphone and android..

When I need two lines of text within the button normally in XAML we can use this

  <local:CircleButton x:Name="Order" FontSize="Large" TextColor="Black" 
                        Text="Orders&#x0a;&#x0a;10"
                        HeightRequest="100" BorderRadius="100" WidthRequest="100" Margin="-50,-50,-50,-50"
                        BorderColor="Black" BorderThickness="5" BackgroundColor="Orange"
                        Clicked="onCircleButton_Clicked" Grid.Row="2" Grid.Column="1" />

This works great on Android and I get the text "Orders" with the number Below it...

On the iphone I just get the text "Orders" and it appears the additional lines of text where not present.

@wilsonvargas
Copy link
Owner

wilsonvargas commented Nov 20, 2017

This is mainly a problem with iOS because Android will wrap the text by default. I'm work in this I'll add this feature to next version.
This is a known issue with Xamarin Forms.

wilsonvargas added a commit that referenced this issue Nov 20, 2017
Exception on Dispose #10
And
Multi Line Labels in Buttons #11
@wilsonvargas
Copy link
Owner

Check latest version (1.2.52). I tested this version on an IPhone with iOS 11, Samsung Galaxy S8 with Android 7.1 and in my computer with Windows 10, it's work fine.

Please tell me if you have a issue again.

@AndyT4ME
Copy link
Author

AndyT4ME commented Nov 21, 2017 via email

@AndyT4ME
Copy link
Author

AndyT4ME commented Nov 21, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants