Bug 339323 - Vertical (right edge placed) panel has one pixel gap
Summary: Vertical (right edge placed) panel has one pixel gap
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 345525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-23 10:01 UTC by Mykola Krachkovsky
Modified: 2015-03-27 12:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3


Attachments
Plasma config file (5.76 KB, text/plain)
2014-09-23 14:19 UTC, Mykola Krachkovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mykola Krachkovsky 2014-09-23 10:01:08 UTC
I place panel to the right edge (sorry, didn't check left side) of screen. When I restart, that panel placed right, but with one pixel gap to screen edge. If I press mouse button there, click goes to desktop area. If I open panel settings and drag "Screen Edge" button, panel snaps to edge well, but after restart gap would be again.

Reproducible: Always

Steps to Reproduce:
1. Place panel to the right edge.
2. Restart.

Actual Results:  
See one pixel gap to the right of panel. You may click right mouse button and get desktop menu, not panel one.

Expected Results:  
Panel should be snapped to right edge.
Comment 1 Mykola Krachkovsky 2014-09-23 14:19:35 UTC
Created attachment 88814 [details]
Plasma config file
Comment 2 David Edmundson 2014-09-25 15:31:50 UTC
Seems it's not restricted to just the right edge

*** This bug has been marked as a duplicate of bug 339297 ***
Comment 3 Mykola Krachkovsky 2015-02-26 08:21:06 UTC
I have checked 4 placements, so my conclusion https://bugs.kde.org/show_bug.cgi?id=339297 was solved but vertical right placement still has 1 pixel gap.
Comment 4 Bhushan Shah 2015-02-26 11:11:29 UTC
might be related https://bugs.kde.org/show_bug.cgi?id=340549
Comment 5 David Edmundson 2015-03-25 19:35:00 UTC
*** Bug 345525 has been marked as a duplicate of this bug. ***
Comment 6 Bhushan Shah 2015-03-27 12:22:03 UTC
Git commit 975e5009c176eb378daa5c8f74cd4cffb64ff459 by Bhushan Shah.
Committed on 26/03/2015 at 15:50.
Pushed by bshah into branch 'master'.

Fix one pixel gap between screenedge and right placed vertical panel

Appearantly right() / bottomRight() / topRight() returns values with 1
pixel x off for historical reasons and hence 1px gap. This causes the
autohide panel not hiding automatically.
Related: bug 340549
FIXED-IN: 5.3
REVIEW: 123136

M  +6    -5    shell/panelview.cpp

http://commits.kde.org/plasma-workspace/975e5009c176eb378daa5c8f74cd4cffb64ff459