From 395a906f346c8741c952f2d274272552dadaab8c Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Mon, 2 Dec 2024 02:18:10 -0800 Subject: [PATCH] layout.js: Fix the work area for MonitorConstraint (#12543) The work area was being improperly calculated for panels placed on the top or right side of the screen. --- js/ui/layout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/layout.js b/js/ui/layout.js index a01af2d3d2..e9eeceeb7c 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -157,12 +157,14 @@ var MonitorConstraint = GObject.registerClass({ switch (i) { case 0: rect.y += panel.actor.get_height(); + rect.height -= panel.actor.get_height(); break; case 1: rect.height -= panel.actor.get_height(); break; case 2: rect.x += panel.actor.get_width(); + rect.width -= panel.actor.get_width(); break; case 3: rect.width -= panel.actor.get_width();