Bug 339602 - Maximizing centered panel is 1px off and expands to another screen
Summary: Maximizing centered panel is 1px off and expands to another screen
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-02 09:12 UTC by Martin Klapetek
Modified: 2014-11-24 16:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (2.61 MB, image/png)
2014-10-02 09:12 UTC, Martin Klapetek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.