x11pygrid icon indicating copy to clipboard operation
x11pygrid copied to clipboard

Windows with areas hidden by the menu bars / launch bars / panel bars

Open Mr-Ruben opened this issue 4 years ago • 0 comments

Hello,

I just wanted to describe my issue & solution in case others have it too.

Problem: pygrid was placing the windows slightly wrong in the left side (I have a bar) and the upper side (another bar).

Bad Wrong

Good Right

Issue: Documentation says

'padding': [0, 0, 0, 0], // additional top, right, bottom, left padding in pixels.

but it does not mention if the padding is absolute (regarding the whole screen) or relative (of each window relative to other windows and screen borders). (Or maybe I don't understand what padding is).

Solution: After some playing around, I found that just by modifying the padding values, the wrong offset in the upper and left sides gets corrected.

(on my case)

"padding": [24,0,0,28],

For reference I include the whole subsection

  "default": {
    "maxheight": 0.67,
    "maxwidth": 0.67,
    "minheight": 0.33,
    "minwidth": 0.25,
    "padding": [24,0,0,28],
    "snaptocursor": false,
    "spacing": 2,
    "xdivs": 6,
    "ydivs": 2

Mr-Ruben avatar Feb 15 '21 13:02 Mr-Ruben