[duplicate] Preview header widget doesn't wrap

Bug #1349950 reported by Chris Wayne
This bug report is a duplicate of:  Bug #1328513: Preview header title truncated. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity8 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Im populating a preview with text received from the etsy API, and it's being run off the screen and not wrapped automatically. See screenshot

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: unity8 7.89+14.10.20140624-0ubuntu1
ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
Uname: Linux 3.15.0-6-generic x86_64
ApportVersion: 2.14.3-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 29 12:57:35 2014
InstallationDate: Installed on 2014-05-09 (81 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: unity8
UpgradeStatus: Upgraded to utopic on 2014-06-26 (33 days ago)

Revision history for this message
Chris Wayne (cwayne) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity8 (Ubuntu):
status: New → Confirmed
Michał Sawicz (saviq)
tags: added: rtm14
Revision history for this message
Albert Astals Cid (aacid) wrote :

This is weird since i was looking at this yesterday and the test shows the text does actually wrap, and it seems to work here for a few random ubuntu store previews. Can you please tell us how to reproduce your problem?

Revision history for this message
Michał Sawicz (saviq) wrote : Re: [Bug 1349950] Re: Preview text widget isn't automatically wrapped

W dniu 30.07.2014 o 08:20, Albert Astals Cid pisze:
> This is weird since i was looking at this yesterday and the test shows
> the text does actually wrap, and it seems to work here for a few random
> ubuntu store previews. Can you please tell us how to reproduce your
> problem?

I think the issue might be html tags, we're not forcing plaintext on the
Label, which might result in wrapping to not happen if there's rich text
formatting.

Needs verification, though.

Revision history for this message
Chris Wayne (cwayne) wrote : Re: Preview text widget isn't automatically wrapped

This is an example of the description we'd get from the etsy API:

"description": "This is a thick cream to be used on face as well as body.\r\nThe latest fad in skincare.. Probiotics. not only are they good for the inside but the outside skin as well.\r\n\r\nI will add kombucha tea .\r\nRemember to store in the refrigerator -probiotics have a shorter shelf life. There is a preservative that will not kill the good bacteria. It will not last long term. Will last about 4-6 weeks.\r\n\r\nSo great for the skin and so many companies are now using it in professional lines.\r\n\r\nThe kombucha for skincare--fermented tea-\r\nBoth the glucoronic and lactic-acid compounds in kombucha are considered beneficial to the skin's dermal layer, helping it maintain moisture and elasticity.Kombucha tea can also be used as a prophylactic against blemishes and as a way to even skin tone also beneficial for eczema and itchy skin.\r\n\r\nIn Skin-Care Products\r\nThese properties are one reason why kombucha extract is used in a number of skin-care products, including creams, lotions and exfoliating scrubs. Applying kombucha topically to the skin is thought to enhance the skin's overall appearance by making it appear smoother and more even in tone and texture\r\ntopical antibiotic. It also contains b vitamins which also improve skin function. \r\n\r\nYou will get an 8 oz. container. The cream will also be made with jojoba oil, distilled water, emulsifying wax, vit e, citric acid, cinnamon and preservative. aloe vera, glycerine.\r\n\r\nStore in refrigerator and enjoy all the benefits.",

Revision history for this message
Chris Wayne (cwayne) wrote :
Revision history for this message
Albert Astals Cid (aacid) wrote :

You are using the "header" preview widget instead of the "text" one. Please use "text".

Now we need to think if "header" should wrap or not.

Saviq?

Revision history for this message
Chris Wayne (cwayne) wrote : Re: [Bug 1349950] Re: Preview text widget isn't automatically wrapped

I think header should wrap rather than truncate, as some result titles can
be quite long, and often get truncated in the preview

On Wed, Jul 30, 2014 at 9:46 AM, Albert Astals Cid <
<email address hidden>> wrote:

> You are using the "header" preview widget instead of the "text" one.
> Please use "text".
>
> Now we need to think if "header" should wrap or not.
>
> Saviq?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1349950
>
> Title:
> Preview text widget isn't automatically wrapped
>
> Status in “unity8” package in Ubuntu:
> Confirmed
>
> Bug description:
> Im populating a preview with text received from the etsy API, and it's
> being run off the screen and not wrapped automatically. See
> screenshot
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.10
> Package: unity8 7.89+14.10.20140624-0ubuntu1
> ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
> Uname: Linux 3.15.0-6-generic x86_64
> ApportVersion: 2.14.3-0ubuntu2
> Architecture: amd64
> CurrentDesktop: Unity
> Date: Tue Jul 29 12:57:35 2014
> InstallationDate: Installed on 2014-05-09 (81 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64
> (20140417)
> SourcePackage: unity8
> UpgradeStatus: Upgraded to utopic on 2014-06-26 (33 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1349950/+subscriptions
>

Revision history for this message
Michał Sawicz (saviq) wrote :

W dniu 30.07.2014 o 14:46, Albert Astals Cid pisze:
> You are using the "header" preview widget instead of the "text" one.
> Please use "text".
>
> Now we need to think if "header" should wrap or not.

W dniu 30.07.2014 o 14:59, Chris Wayne pisze:
 > I think header should wrap rather than truncate, as some result
titles can
 > be quite long, and often get truncated in the preview

No, header is the same as in card. Two lines for title, one line for
subtitle, not sure why this didn't get enforced, so bug.

For a longer title, there will be a separate widget ("title") that will
just wrap with no line limit.

Michał Sawicz (saviq)
summary: - Preview text widget isn't automatically wrapped
+ Preview header widget doesn't wrap
kevin gunn (kgunn72)
tags: added: touch-2014-10-2
kevin gunn (kgunn72)
summary: - Preview header widget doesn't wrap
+ [duplicate] Preview header widget doesn't wrap
kevin gunn (kgunn72)
tags: removed: rtm14 touch-2014-10-2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.