Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mr-Ruben opened this issue Feb 15, 2021 · 0 comments
Open

Comments

@Mr-Ruben
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant