From d87f3aa42e7e1c67a2d35aa87693a03b67308dc3 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 18 Jan 2024 02:36:51 +0200 Subject: [PATCH] Fix Label Multiline Truncation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Javier Suárez --- .../Pages/Controls/LabelPage.xaml | 7 ++ src/Controls/src/Core/Label/Label.Android.cs | 1 - src/Controls/src/Core/Label/Label.Windows.cs | 5 +- src/Controls/src/Core/Label/Label.iOS.cs | 2 +- .../Android/Extensions/TextViewExtensions.cs | 23 +++-- .../Windows/Extensions/TextBlockExtensions.cs | 83 ++++++++++--------- .../Platform/iOS/Extensions/TextExtensions.cs | 9 +- .../Elements/Label/LabelTests.Android.cs | 22 +++++ .../DeviceTests/Elements/Label/LabelTests.cs | 60 +++++++++++++- .../Elements/Label/LabelTests.iOS.cs | 26 +++++- 10 files changed, 179 insertions(+), 59 deletions(-) diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/LabelPage.xaml b/src/Controls/samples/Controls.Sample/Pages/Controls/LabelPage.xaml index f98559ce3e39..7fab8e0d6405 100644 --- a/src/Controls/samples/Controls.Sample/Pages/Controls/LabelPage.xaml +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/LabelPage.xaml @@ -231,6 +231,13 @@