xamarin/Xamarin.Forms

[Bug] Listview - Label rendering Bindings Layout options

Aperta

#6370 aperta il 31 mag 2019

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/listviewe/4 :clock4:help wantedinactivet/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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)

Guida contributor