Bug 280350 - Texts and dates in popup broken to new line inappropriately
Summary: Texts and dates in popup broken to new line inappropriately
Status: RESOLVED DUPLICATE of bug 260394
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-clock (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 13:30 UTC by Frederik Schwarzer
Modified: 2011-10-13 09:37 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of an ugly line break (22.40 KB, application/octet-stream)
2011-08-18 13:30 UTC, Frederik Schwarzer
Details
error using trunk in x-test (20.69 KB, image/png)
2011-08-18 17:05 UTC, Burkhard Lück
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Schwarzer 2011-08-18 13:30:50 UTC
Created attachment 62947 [details]
Screenshot of an ugly line break

Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

Hi,

the popup that is shown when hovering the clock with the mouse cursor, breaks texts and dates "the hard way" which leads to ugly sights like the on attached.
See the "Dominikanische Republik".

In 4.6 I also saw line breaks in the middle of "2011".

Reproducible: Didn't try

Steps to Reproduce:
Hover the clock.


Expected Results:  
Do not break; resize?
Or only break at whitespaces?
Comment 1 Burkhard Lück 2011-08-18 17:05:12 UTC
Created attachment 62957 [details]
error using trunk in x-test

$ plasma-desktop --version
xxQt: 4.7.0
KDE Development Platform: 4.7.40 (4.7.40 (KDE 4.8 >= 20110623)
xxPlasma Desktop Shellxx: 0.4
xx
Comment 2 Kai Uwe Broulik 2011-09-01 16:00:11 UTC
I tried creating a patch that adds “style="white-space: nowrap"” to the <td> or the <table> but Plasma just ignores it … and then often breaks onle the colon to the next line or the last few characters. It seems there is a (hardcoded?) maximum width for the tooltip after which it just can’t expand anymore which seems to be around 600 pixels
Comment 3 Burkhard Lück 2011-09-16 04:33:41 UTC

*** This bug has been marked as a duplicate of bug 260394 ***
Comment 4 Ph. Marek 2011-10-13 09:37:26 UTC
How about just using the short names, like "Do" instead of "Donnerstag" and "Okt" instead of "Oktober"? Should save enough width to make it fit.