xamarin/Xamarin.Forms

[Bug] Listview - Label rendering Bindings Layout options

开放

#6,370 创建于 2019年5月31日

 (1 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/listviewe/4 :clock4:help wantedinactivet/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

When populating a ListView with a custom ViewCell and at least a Label inside with Text set to a Binding, rendered text shows up cut or misaligned. Text set within the XAML won't reproduce this

Steps to Reproduce

  1. Create a ListView
  2. Create a ViewCell with a label inside with VerticalOptions set to Center and HorizontalOptions set to Center
  3. Bind Text to a property

Expected Behavior

Text showing up correctly when scrolling

Actual Behavior

Label text gets cut or misaligned

Basic Information

  • Version with issue: 4.0.0.425677
  • Last known good version: --
  • IDE: Visual Studio Mac 2019 and Visual Studio 2019
  • Platform Target Frameworks: - Android: 8.1
  • Android Support Library Version: v28.0.1
  • Nuget Packages: Basic Nugets from a fresh project - Essentials. Xamarin.Forms, Support Libraries
  • Affected Devices: Samsung Galaxy S9, Emulator, Huawei P20 Lite, etc.

Screenshots

image (1)

Repro vídeo: https://streamable.com/y8gqp

Reproduction Link

See project -> https://github.com/bcaceiro/XamarinTests Click on ListView Tests, scroll until you find a broken Label (target is in the lower right corner)

贡献者指南