don't use workarea.y directly

Can cause problems if eg. a layout is triggered when a fullscreen window is
active.
This commit is contained in:
Tor Hedin Brønner
2019-04-28 10:06:15 +02:00
parent 3c7ac9509e
commit cb67f451a2

View File

@@ -370,9 +370,9 @@ class Space extends Array {
this._inLayout = false;
return;
}
let availableHeight = (workArea.height - prefs.vertical_margin);
let y0 = workArea.y - this.monitor.y + prefs.vertical_margin;
let availableHeight = (workArea.y - this.monitor.y + workArea.height -
(panelBox.height)*this.showTopBar - prefs.vertical_margin);
let y0 = (panelBox.height)*this.showTopBar + prefs.vertical_margin;
let fixPointAttempCount = 0;
for (let i=0; i<this.length; i++) {