Bug 357500

Summary: setting the minimum panel size below the maximum panel size causes the panel to flicker between it's minimum and maximum size
Product: [Plasma] plasmashell Reporter: 34cm8565becib9nos0i9
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: kde
Priority: NOR Keywords: testcase
Version First Reported In: 5.5.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
URL: https://dl.dropboxusercontent.com/u/79230546/PanelBug.webm
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description 34cm8565becib9nos0i9 2016-01-04 07:50:39 UTC
I highly recommend you look at the demonstration URL I've included since this a very visual bug and is difficult to explain textually.

After setting a panel's minimum size lower than it's maximum size via the Panel Settings dialogue it proceeds to flicker between it's maximum and minimum size; rapid flickering occurs when plasmoids are present on the panel that have a dynamic size, such as a Flexible Spacer or in my situation/example the Icons-only Task Manager; however when they have a static size such as the Digital Clock or when no plasmoids are present the panel flickers once to it's minimum size and then sticks at it's maximum size.

It should stick at it's minimum size in both instances when there are no widgets or the widgets that are present are not large enough to push the panel to it's maximum size.

Reproducible: Always

Steps to Reproduce:
1. Add an empty panel to any edge of the screen.
2. Set that panel's minimum size lower than it's maximum size.

Actual Results:  
The panel flickered rapidly between it's minimum and maximum size if I added a dynamic size widget like the Icons-only Task Manager. 

The panel flickered once between it's minimum and maximum size then stuck at it's maximum size, if I added a static size widget like the Digital Clock or if I simply didn't add any widgets.

Expected Results:  
The panel should have remained at it's minimum size plus the length of any widgets that exceeded the minimum size but not the maximum size.

This is not the only instance of poor size calculation of plasma widgets in my plasma desktop. For instance, the pager widget when placed on the desktop does not size itself correctly to the workspace squares and has a whole extra segment of background to the right. I'd file that as a extra bug report but I feel the two issues are connected and hopefully the solution to this bug which is the more major one will fix that as well.
Comment 1 34cm8565becib9nos0i9 2016-01-04 10:13:26 UTC
Upon further experimentation it also seems this bug is connected to presence of a maximized panel already being present on the desktop. When unmaximizing the already-present panel it functions semi-normally in that it will work but only up until the last quarter or so of the screen where it functions exactly as described above still.
Comment 2 David Edmundson 2016-01-04 12:38:59 UTC
I can't reproduce this.

It's possible a change I made in the upcoming Plasma 5.5.3 will fix this. Could you be sure to retest when you get that.
Comment 3 34cm8565becib9nos0i9 2016-01-04 13:38:42 UTC
(In reply to David Edmundson from comment #2)
> I can't reproduce this.
> 
> It's possible a change I made in the upcoming Plasma 5.5.3 will fix this.
> Could you be sure to retest when you get that.

Will do.
Comment 4 34cm8565becib9nos0i9 2016-01-07 08:21:17 UTC
(In reply to David Edmundson from comment #2)
> I can't reproduce this.
> 
> It's possible a change I made in the upcoming Plasma 5.5.3 will fix this.
> Could you be sure to retest when you get that.

This bug is resolved as of Plasma 5.5.3. Thank you.