Bug 280350

Summary: Texts and dates in popup broken to new line inappropriately
Product: [Unmaintained] plasma4 Reporter: Frederik Schwarzer <schwarzer>
Component: widget-clockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: KaiUweBroulik2, lueck, philipp
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of an ugly line break
error using trunk in x-test

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.