question

njsokalski avatar image
0 Votes"
njsokalski asked ·

Label Wrapping Increases Line Height

I have a Xamarin.Forms Label with LineBreakMode="WordWrap". When the text is wider than the other content of the Grid in which it is contains, it increases the line height as in the following screenshot:
70180-screenshot-1613849450.png
Notice that the text in the first item ("Cities"), the text has a width less than the 0 & buttons, and the text in the second item ("Citiesxyzxyz") is wider than the 0 & buttons. Notice that even though the text is not actually wrapping (which is what I want & expect, since it is all one word), the second item adds extra space below the text (increasing the line height). Why is this happening, and how can I prevent it? Thanks.

dotnet-xamarinformsdotnet-xamarinforms-xaml
· 5
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@njsokalski If possible could you provide us the code in xaml to test?

0 Votes 0 ·

It doesn't want to let me submit the reply when I include code.

0 Votes 0 ·

Hi , you could update the code in your original post (Edit ).

0 Votes 0 ·
Show more comments

0 Answers