Xamarin label (TextType="Html") adds extra space at the bottom of the label.

Uragonda, Rajesh 31 Reputation points
2022-04-21T18:47:24.217+00:00

Below is the sample text to reproduce the issue.

<p><em>eoiureo</em> oiueio <u>ueoiroierueoi</u> eoirueoirueioruieor eioru eoiruo</p>

It adds and extra space at the bottom due to html tags such as <p></p>.

Is there any workaround to remove the space at the bottom.

195321-whatsapp-image-2022-04-22-at-121412-am.jpeg

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,911 Reputation points Microsoft Vendor
    2022-04-22T02:25:02.443+00:00

    Hello,

    It's indeed an existing issue which had been submitted on Github: Label takes more height when TextType is "Html".

    Thanks for your feedback.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful