diff --git a/tiling.js b/tiling.js index c5c323c..f15e3a2 100644 --- a/tiling.js +++ b/tiling.js @@ -370,9 +370,9 @@ class Space extends Array { this._inLayout = false; return; } - let availableHeight = (workArea.y - this.monitor.y + workArea.height - - panelBox.height - prefs.vertical_margin); - let y0 = panelBox.height + prefs.vertical_margin; + + let availableHeight = (workArea.height - prefs.vertical_margin); + let y0 = workArea.y - this.monitor.y + prefs.vertical_margin; let fixPointAttempCount = 0; for (let i=0; i