Bug 339602

Summary: Maximizing centered panel is 1px off and expands to another screen
Product: [Plasma] plasmashell Reporter: Martin Klapetek <mklapetek>
Component: PanelAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: aelspire, aleixpol
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Martin Klapetek 2014-10-02 09:12:17 UTC
Created attachment 88927 [details]
Screenshot

Steps to reproduce:
 1) Center align panel
 2) Make it smaller
 3) Maximize it

Results:
The panel is 1px short at the right edge and 1px too much on the left edge, in multi-screen setup this causes the other screen to have a screen-wide strut set for the bottom edge, leaving a strip of unusable space on the other screen. See screenshot.

Expected results:
Panel should be maximized only on the current screen and not overlap to the other.
Comment 1 Martin Klapetek 2014-10-10 15:11:00 UTC
For the record, still happens with freshly build code.
Comment 2 Martin Klapetek 2014-10-10 15:27:34 UTC
An interesting observation - switching to Left alignment aligns the panel with the left edge of the screen properly and the strut from the other screen goes away, switching back to Center makes it off by 1 px again. 

Also as can be seen on the initial screenshot, the panel is actually not touching the screenedge on the right side (when centered+maximized).
Comment 3 Aleksander Szczygieł 2014-10-20 20:38:23 UTC
I can confirm this bug on Arch Linux x86_64 with plasma-next 5.1.0.1-1. I have panel vertically on right side, still Left alignment works good and any other is off by 1 px.
Comment 4 Aleix Pol 2014-11-24 16:20:59 UTC
Can you confirm it's still happening for you? I cannot reproduce it anymore.
Comment 5 Martin Klapetek 2014-11-24 16:32:08 UTC
Fixed in master for sure.