From f4e91d1e4f24474dd3209b7219d41b24a8ae8273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Sat, 27 Apr 2019 17:50:25 +0200 Subject: [PATCH] Respect workarea.y when laying out the tiling Ref: #103 --- tiling.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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