xamarin/Xamarin.Forms

[Bug] Label resize bug on Android

开放

#8,959 创建于 2019年12月18日

 (1 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/layoute/5 :clock5:help wantedinactivep/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 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

贡献者指南