New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UWP] Label MaxLines doesn't work #4458

Closed
davidortinau opened this Issue Nov 19, 2018 · 1 comment

Comments

4 participants
@davidortinau
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

This comment has been minimized.

Contributor

jfversluis commented Nov 20, 2018

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

@jfversluis jfversluis referenced this issue Nov 23, 2018

Merged

[UWP] Label MaxLines doesn't work #4528

2 of 3 tasks complete

@samhouts samhouts added this to In Progress in vNext+1 (master) 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 vNext+1 (master) Nov 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment