Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS- Xamarin forms Label LineBreakMode to WordWrap was not working during runtime. #14999

Open
sbs-surendhar-kabilan opened this issue Dec 23, 2021 · 0 comments
Labels
a/label p/iOS 🍎 s/unverified New report that has yet to be verified t/bug 🐛

Comments

@sbs-surendhar-kabilan
Copy link

Description

This issue occurs only on the iOS platform and it was working fine on the Android platform.

We made some operations while tapping the ReadMore label, We are changing the line break mode as word-wrap to display all texts added in the Label. And if we tapped hide the label, we are changing Label line break mode to Tailtrunction.

In iOS, While changing Linebreakmode Tailtruncation to word wrap, it was not working.

Note:
In iOS, if we set Label LineBreakMode initially, it was working fine, but if we set it at runtime it was not working properly.

Steps to Reproduce

  1. Tap ReadMore Label
  2. Tap Hide Label

Expected Behavior

Should display long text in view, output like in the Android platform. When changing LineBreakMode to WordWrap at runtime, should display Multiline text in view.

Actual Behavior

When changing LineBreakMode to WordWrap at runtime, it was displaying only single-line text.

Basic Information

  • Platform Target Frameworks:
    • iOS: 14.4
    • NuGet Packages: Xamarin forms 5.0.0.2291
  • Affected Devices: All iOS devices

Screenshots

Please see the video reference taken in the android and ios platforms:

Working fine video in android:
https://user-images.githubusercontent.com/64480077/147219754-0fc161d1-266b-47f7-add2-daa3e7274f63.mp4

Issue video in iOS platform:
https://user-images.githubusercontent.com/64480077/147223881-d9bf6549-a1a7-4c10-bc8c-fa0cae7e734d.mp4

Please see the sample :
XamarinLabel.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/label p/iOS 🍎 s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants