xamarin/Xamarin.Forms

[Bug] Listview - Label rendering Bindings Layout options

Open

#6,370 opened on May 31, 2019

 (1 comment) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewe/4 :clock4:help wantedinactivet/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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)

Contributor guide