Razor-qt / razor-qt

Razor is now LXQt:
http://lxqt.org
Other
365 stars 78 forks source link

Special meaning of negative size for panel #651

Closed kuzmas closed 10 years ago

kuzmas commented 11 years ago

When I use another monitor with my laptop, my secondary panel (a vertical one with size = screen.height() -main_panel.height()) becomes shorter since its size specified in pixels. So I have to adjust the height, then when I unplug it and use laptop's monitor only, this panel becomes bigger than screen size so I have to adjust the height again. This patch allows negative panel lengths in pixels and applies a special meaning to it: if the length value is negative or zero, then the panel length is maximum available space (screen width or height) - specified value.

jleclanche commented 10 years ago

lgtm

jleclanche commented 10 years ago

Note: This needs to be documented. Would be great if you could submit a patch to document it both in the code and wherever else relevant.

kuzmas commented 10 years ago

Sounds reasonable.