xamarin/Xamarin.Forms

[Bug] Label resize bug on Android

オープン

#8,959 opened on 2019/12/18

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/layoute/5 :clock5:help wantedinactivep/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

The height of the Label doesn't engage to a change in MaxLines when the Label is within a Stacklayout (ScrollView works)

Steps to Reproduce

<StackLayout VerticalOptions="FillAndExpand"> <Label LineBreakMode="TailTruncation" Text="{Binding ...}" MaxLines="3"> <Label.GestureRecognizers> <TapGestureRecognizer Tapped="OnCommentClicked"/> </Label.GestureRecognizers> </Label> </StackLayout>

async private void OnCommentClicked(object sender, EventArgs args) { ((Label)sender).MaxLines = 100; // height not changing, only the text }

Basic Information

  • Version with issue: XF 4.4.0

コントリビューターガイド