https://bugs.kde.org/show_bug.cgi?id=395496

--- Comment #4 from Adel Q <abq...@gmail.com> ---
(In reply to Christoph Feck from comment #1)
> Is it caused by the long city name? Does it reproduce with a shorter name?
> Which weather provider are you using?

Yes, it is caused by the long city name. When using a shorter city name, the
tabs are shown fine. I am using the NOAA weather provider. The location to
reproduce is "Detroit, Detroit Metropolitan Wayne County Airport, MI (noaa)".

(In reply to Duncan from comment #3)
> This second method, adding the weather-report plasmoid directly to the panel
> (or desktop if preferred), instead of nesting it inside the system-tray
> plasmoid, avoids the popup-window size constraints of the system-tray, thus
> avoiding the problem. =:^)

I can confirm that this happens in my case as well -- the plasmoid resizes to
the full width of the city name when placed as an independent plasmoid rather
than in the system-tray. I think the preferred behavior should be truncating
the location name with "..." rather than overextending. For an extreme example,
try the "Bloomington/Normal, Central Illinois Regional Airport at
Bloomington-Normal" NOAA station, the weather widget shouldn't take up half the
screen.

For testing purposes of different stations, you can use the following to get
the list of NOAA stations sorted by length:

    wget https://w1.weather.gov/xml/current_obs/index.xml
    xmllint --xpath '//station/station_name/text()' index.xml | awk '{ print
length, $0 }' | sort -rns | less

Bug is still reproducible in the most current releases.

Distro: Arch Linux (up to date)
Qt Version: 5.12.1
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to