Bug 192101 - weather widget: name of city isn't wrapped when too long
Summary: weather widget: name of city isn't wrapped when too long
Status: RESOLVED DUPLICATE of bug 201154
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-weather (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 193443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-09 09:53 UTC by Janet
Modified: 2010-05-11 05:41 UTC (History)
5 users (show)

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


Attachments
screenshot of weather widget with long city name (43.71 KB, image/jpeg)
2009-05-09 09:56 UTC, Janet
Details
left side of 2nd activity (which should be independent of 1st activity that contains the widget) (13.55 KB, image/jpeg)
2009-05-09 09:58 UTC, Janet
Details
Wheater widget with oversized context (275.88 KB, image/png)
2010-03-08 18:21 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2009-05-09 09:53:47 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

The name of the used city/weather station in the header of the weather widget should be wrapped when it is too long. E.g. I use the station "Hamburg - Fuhlsbüttel International, Germany". What I can read is "amburg - Fuhlsbuttel Intern  al, Germany" where the "al, Germany" is outside the widget's borders. The first letter "H" is covered by the weather icon and the letters "ation" are mixed with the temperature so that I can neither read the text nor the temperature.

And strange side effect: when the widget sits on the right side of the desktop of my first activity the header reaches into my second activity!
Comment 1 Janet 2009-05-09 09:56:20 UTC
Created attachment 33482 [details]
screenshot of weather widget with long city name
Comment 2 Janet 2009-05-09 09:58:32 UTC
Created attachment 33483 [details]
left side of 2nd activity (which should be independent of 1st activity that contains the widget)
Comment 3 Aaron J. Seigo 2009-05-09 10:18:48 UTC
the maximum width isn't being set correctly on that widget and clip-to-parent isn't on either
Comment 4 Shawn Starr 2009-05-27 03:31:54 UTC
*** Bug 193443 has been marked as a duplicate of this bug. ***
Comment 5 Aaron J. Seigo 2009-06-16 06:16:33 UTC
just tested with the 4.3 widget, and this works fine if a little bit ugly: if the name doesn't fit it's just chopped off at the end. (it really ought to fade out, imho, but at least it doesn't invade the rest of the canvas anymore ;)
Comment 6 Janet 2009-06-19 19:11:30 UTC
Well, I'm now using KDE 4.3 Beta2 and it still isn't solved completely: it is ok as described, when I put the widget onto the desktop. It still is ok when I make it larger. But then I made it smaller than the default size and suddenly the long name again is displayed in full length, covering the temperature and reaching over the widgets borders. Or it this fixed too in trunk?
Comment 7 qqqqqqqqq9 2009-07-18 14:03:08 UTC
Hi,
i think think, it would be best if the shown name could be edited by the user.
I would shorten Hamburg - Fuhlsbüttel International, Germany to Hamburg Fuhlsbüttel. Since everybody probably takes his own city, there is no need to be so precise here.
Comment 8 Rolf Eike Beer 2010-03-08 18:20:31 UTC
Since 193443 is marked as dupe of this and isn't resolved at all I'm reopening this. See attached picture:

-name of station is short enough to fit
-if I make the widget larger at one point the contents begin to adapt to the widgets size. But making this smaller and the overflow. This "minimum content size" isn't enforced for the widget and even the default size when adding a new wheater widget is smaller than this size.
Comment 9 Rolf Eike Beer 2010-03-08 18:21:36 UTC
Created attachment 41448 [details]
Wheater widget with oversized context
Comment 10 Rolf Eike Beer 2010-03-08 18:22:12 UTC
Btw: I'm running 4.4.1
Comment 11 Janet 2010-03-09 20:47:16 UTC
Look at Bug 201154. Widget now seems to have a fixed minimum size so that all content stays inside the widget borders...
Comment 12 Aaron J. Seigo 2010-05-11 05:41:15 UTC

*** This bug has been marked as a duplicate of bug 201154 ***