xamarin/Xamarin.Forms

Combination of FormattedString and TailTruncation problems

开放

#5,669 创建于 2019年3月22日

 (7 条评论) (3 个反应) (0 位负责人)C# (1,926 个派生)batch import
3.6.0e/3 :clock3:help wantedi/regressionp/Androidp/iOS 🍎t/bug :bug:up-for-grabs

仓库指标

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

描述

Description

When I use Label with LineBreakMode="TailTruncation" and set FormattedText with some spans then tail truncation is not working on iOS and freezes on Android.

Steps to Reproduce

  1. Create Label with LineBreakMode="TailTruncation"
  2. Set FormattedText with some spans
  • tail truncation not working on iOS and freezes on Android API22 and lower
  1. Add into FormattedText some new line characters
  • freezes on Android API23 and higher

Expected Behavior

iOS: Tail truncation on both Labels with FormattedText Android: Tail truncation on both Labels with FormattedText

Actual Behavior

iOS: No truncation Android API23 and higher: Application freezes when page appeared with new lines in text Android API22 and lower: Application freezes when page appeared

Basic Information

  • Version with issue: 3.6.0.264807

  • Last known good version: 3.5.0.169047, but I'm not sure if 3.6.0.220655 is working

  • IDE: Microsoft Visual Studio Community 2017, Version 15.9.6

  • Platform Target Frameworks:

    • iOS: 12.1.4
    • Android: 7.0
  • Android Support Library Version: 28.0.0.1

  • Nuget Packages: Xamarin.Android.Arch.Core.Common 1.1.1.1 Xamarin.Android.Arch.Core.Runtime 1.1.1.1 Xamarin.Android.Arch.Lifecycle.Common 1.1.1.1 Xamarin.Android.Arch.Lifecycle.LiveData 1.1.1.1 Xamarin.Android.Arch.Lifecycle.LiveData.Core 1.1.1.1 Xamarin.Android.Arch.Lifecycle.Runtime 1.1.1.1 Xamarin.Android.Arch.Lifecycle.ViewModel 1.1.1.1 Xamarin.Android.Support.Animated.Vector.Drawable 28.0.0.1 Xamarin.Android.Support.Annotations 28.0.0.1 Xamarin.Android.Support.AsyncLayoutInflater 28.0.0.1 Xamarin.Android.Support.Collections 28.0.0.1 Xamarin.Android.Support.Compat 28.0.0.1 Xamarin.Android.Support.CoordinaterLayout 28.0.0.1 Xamarin.Android.Support.Core.UI 28.0.0.1 Xamarin.Android.Support.Core.Utils 28.0.0.1 Xamarin.Android.Support.CursorAdapter 28.0.0.1 Xamarin.Android.Support.CustomTabs 28.0.0.1 Xamarin.Android.Support.CustomView 28.0.0.1 Xamarin.Android.Support.Design 28.0.0.1 Xamarin.Android.Support.DocumentFile 28.0.0.1 Xamarin.Android.Support.DrawerLayout 28.0.0.1 Xamarin.Android.Support.Fragment 28.0.0.1 Xamarin.Android.Support.Interpolator 28.0.0.1 Xamarin.Android.Support.Loader 28.0.0.1 Xamarin.Android.Support.LocalBroadcastManager 28.0.0.1 Xamarin.Android.Support.Media.Compat 28.0.0.1 Xamarin.Android.Support.Print 28.0.0.1 Xamarin.Android.Support.SlidingPaneLayout 28.0.0.1 Xamarin.Android.Support.SwipeRefreshLayout 28.0.0.1 Xamarin.Android.Support.Transition 28.0.0.1 Xamarin.Android.Support.v4 28.0.0.1 Xamarin.Android.Support.v7.AppCompat 28.0.0.1 Xamarin.Android.Support.v7.CardView 28.0.0.1 Xamarin.Android.Support.v7.MediaRouter 28.0.0.1 Xamarin.Android.Support.v7.Palette 28.0.0.1 Xamarin.Android.Support.v7.RecyclerView 28.0.0.1 Xamarin.Android.Support.Vector.Drawable 28.0.0.1 Xamarin.Android.Support.VersionedParcelable 28.0.0.1 Xamarin.Android.Support.ViewPager 28.0.0.1 Xamarin.Forms 3.6.0.264807

Reproduction Link

https://github.com/EislerDavid/FormattedTextSamplaProject

贡献者指南