HtmlLabelPlugin icon indicating copy to clipboard operation
HtmlLabelPlugin copied to clipboard

iOS formatting issue

Open IeuanWalker opened this issue 4 years ago • 3 comments

Formatting on iOS goes weird after version 5.0.0.alpha3

5.0.0.alpha3 - image

5.0.0 and 5.0.0.alpha4 - image

IeuanWalker avatar Mar 11 '21 17:03 IeuanWalker

Hi, where the padding in Android comes from?

matteobortolazzo avatar Mar 13 '21 18:03 matteobortolazzo

@matteobortolazzo On the control it self, this is my XAML -

  <abstractions:HtmlLabel x:Name="HtmlLabel"
                                Padding="15"
                                AndroidListIndent="0"
                                BackgroundColor="Transparent"
                                HorizontalOptions="FillAndExpand"
                                LineHeight="1.2"
                                LinkColor="{DynamicResource TextLinkColour}"
                                Text="{Binding Html, Source={x:Reference MarkdownViewName}}"
                                TextColor="{DynamicResource TextPrimaryColour}"
                                VerticalOptions="FillAndExpand" />

For some reason, iOS loses the padding + adds a lot of space to the top.

IeuanWalker avatar Mar 13 '21 19:03 IeuanWalker

About the padding I think it's because I set it to 0 as there were issues with alpha3, about the top, I don't know, I have to investigate

matteobortolazzo avatar Mar 13 '21 19:03 matteobortolazzo