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

[UWP] Label MaxLines doesn't work #4458

Closed
davidortinau opened this issue Nov 19, 2018 · 2 comments · Fixed by #4528
Closed

[UWP] Label MaxLines doesn't work #4458

davidortinau opened this issue Nov 19, 2018 · 2 comments · Fixed by #4528

Comments

@davidortinau
Copy link
Contributor

davidortinau commented Nov 19, 2018

Description

Label MaxLines should display 4 lines and then truncation, but it only shows one line. IF I remove the LineBreakMode="TailTruncation" then I get 4 lines.

Steps to Reproduce

Run this and use the 3.3 page.

https://github.com/davidortinau/TheLittleThingsPlayground/blob/master/TheLittleThingsPlayground/Views/ThreeThreePage.xaml#L37

<Label x:Name="TruncatedLabel" MaxLines="4" LineBreakMode="TailTruncation" Text="You should see 4 lines of text and truncation at the end. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam mattis quam non enim pellentesque, ut placerat purus finibus. Nulla quis tincidunt ante. Ut mauris lectus, aliquam a sagittis vitae, consequat eget elit. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque convallis nunc nisi, a imperdiet elit efficitur et. Duis in lectus mollis, interdum ipsum et, tincidunt orci. Fusce ipsum metus, imperdiet non lacus vitae, facilisis feugiat magna. Nulla volutpat nisl tortor, a consectetur felis consectetur non. Curabitur in enim vulputate sem volutpat bibendum id nec lorem. Mauris laoreet lacus ac volutpat tempus."/>

Expected Behavior

I should see 4 lines ending with truncation "...".

Actual Behavior

I see 1 line ending with truncation "...".

Basic Information

  • Version with issue: 3.4.0.1008975

Screenshots

image

After removing LineBreakMode="TailTruncation":

image

Reproduction Link

https://github.com/davidortinau/TheLittleThingsPlayground/blob/master/TheLittleThingsPlayground/Views/ThreeThreePage.xaml#L37

@pauldipietro pauldipietro added this to New in Triage Nov 19, 2018
@samhouts samhouts added the p/UWP label Nov 20, 2018
@jfversluis
Copy link
Member

Found the cause, I'll provide a fix in the coming days

@rmarinho rmarinho moved this from New to Ready For Work in Triage Nov 23, 2018
@samhouts samhouts added this to In Progress in v3.6.0 Nov 26, 2018
@samhouts samhouts added this to To do in UWP Ready For Work Nov 26, 2018
@samhouts samhouts removed this from Ready For Work in Triage Nov 26, 2018
UWP Ready For Work automation moved this from To do to Done Nov 27, 2018
@samhouts samhouts moved this from In Progress to Done in v3.6.0 Nov 27, 2018
@samhouts samhouts removed this from Done in v3.6.0 Jan 3, 2019
@samhouts samhouts added this to In Progress in v3.5.0 Jan 11, 2019
@samhouts samhouts moved this from In Progress to Done in v3.5.0 Jan 11, 2019
@samhouts samhouts removed this from Done in UWP Ready For Work May 6, 2020
@CucaMacaii
Copy link

Hello. I am writing this in Oct 2022 and it still happens, exactly as described above - MaxLines="5" without LineBreakMode="TailTruncation" works, but with LineBreakMode="TailTruncation" I only see one line, ellipsized. I expected to see 5 lines, ellipsized. I think that I have the latest updates... or am I missing some update ? Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v3.5.0
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants