Bug 309447 - battery monitor widget has no minimum size / disappears completely if min panel size less than current
Summary: battery monitor widget has no minimum size / disappears completely if min pan...
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-battery (show other bugs)
Version: 4.9.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 22:37 UTC by Andreas Sturmlechner
Modified: 2013-06-04 15:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.0


Attachments
tiny battery widget - one more systray item and it will be gone completely (12.22 KB, image/jpeg)
2012-11-24 14:02 UTC, Andreas Sturmlechner
Details
hidden battery widget - seconds later it is no more to be seen (10.27 KB, image/jpeg)
2012-11-24 14:13 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner 2012-11-02 22:37:37 UTC
Just recently I re-added the systray back to my "main" panel holding my most often used widgets. With systray now there's a dynamic component involved which at times manages to push the panel further away from minimum size.

I noticed something was missing, and then I noticed that at a recently taken screenshot the battery monitor widget appeared to be very, very tiny. Obviously somethings wrong.

When altering the minimum panel size from excess fat sized (all widgets look fine) down to regular (still fine) and then below currently consumed space, the battery monitor widget shrinks down until it completely disappears.

Happens on an always on, south-centered panel.

Reproducible: Always
Comment 1 Andreas Sturmlechner 2012-11-24 14:02:49 UTC
Created attachment 75445 [details]
tiny battery widget - one more systray item and it will be gone completely

Hm, do I really need to supply a screenshot here? ;) Anyway, here it is - if anyone has trouble finding it, it is: right at the center, squeezed in between: digital clock - battery widget - wicd client

Actually, when you look closer, the color picker widget appears clipped at the bottom too.

Kind of annyoing when 80% of the time the widget is simply 'not there'.
Comment 2 Andreas Sturmlechner 2012-11-24 14:13:39 UTC
Created attachment 75446 [details]
hidden battery widget - seconds later it is no more to be seen

Seconds later it has vanished again - even without an additional systray element, but for some reason systray has slightly changed in size, as can be seen by the infamous clipped systray expander icon to the right. That wouldn't matter as long as the battery widget stood straight to its required size, Maybe the wrong-size-setting battery widget is the culprit for the clipping going on elsewhere too.
Comment 3 Anne-Marie Mahfouf 2012-12-03 18:54:05 UTC
What desktop theme do you use? Can you reproduce the bug with default plasma theme (Air)?

I cannot reproduce in KDE 4.10 beta2.
Comment 4 Andreas Sturmlechner 2012-12-03 23:46:27 UTC
This is Caledonia desktop + icon theme. It's the same though with other themes as well as Air.

I do hope this is not (again) related to systems with external screens attached...
Comment 5 Andreas Sturmlechner 2012-12-05 21:48:28 UTC
Still there after upgrading to 4.10_beta2
Comment 6 Andreas Sturmlechner 2012-12-07 21:52:43 UTC
Is there any multi-resolution related code inside plasmoids? I've already encountered a few bugs that were only visible due to my setup - same user, sometimes mobile, often docking station use with a bigger screen, making applications store window size settings for different resolutions and e.g. akregator acting weird as soon as that happened.
Comment 7 rockonthemoonfm 2013-02-20 19:17:35 UTC
looks like fixed to me in 4.10 final
Comment 8 Andreas Sturmlechner 2013-02-21 22:36:28 UTC
Nope, still the same here.
Comment 9 Andreas Sturmlechner 2013-03-24 16:22:23 UTC
kde-4.10.1: same old, same old
Comment 10 Andreas Sturmlechner 2013-03-24 16:30:50 UTC
For the record, this is instantly reproduceable on first login without existing ~/.kde4 directory, hence standard plasma theme 'Air'.
Comment 11 Andreas Sturmlechner 2013-03-24 17:02:05 UTC
Just noticed, I should probably add that this is not about the 'stock' battery widget residing _inside_ the systray. That one keeps its size. To reproduce, add the battery monitor widget outside of systray somewhere on the panel and add enough other widgets to let it grow bigger than minimum panel size.

I've also made sure this happens regardless of external monitor connected and confirm this happens in any configuration from the beginning, using a fresh home directory.
Comment 12 Andreas Sturmlechner 2013-03-24 17:15:07 UTC
I could also reproduce this on a different system, kubuntu with KDE SC 4.9.5 installed.
Comment 13 Kai Uwe Broulik 2013-06-04 15:48:00 UTC
Git commit 72b9956766b26164628ccc979952fd1ae5bc5e41 by Kai Uwe Broulik.
Committed on 04/06/2013 at 17:47.
Pushed by broulik into branch 'master'.

Also set minimum size when it *is* constrained
FIXED-IN: 4.11.0

M  +4    -0    plasma/generic/applets/batterymonitor/contents/ui/CompactRepresentation.qml

http://commits.kde.org/kde-workspace/72b9956766b26164628ccc979952fd1ae5bc5e41