Skip to content

Commit

Permalink
layout.js: Fix the work area for MonitorConstraint
Browse files Browse the repository at this point in the history
The work area was being improperly calculated for panels placed on the top
or right side of the screen.
  • Loading branch information
JosephMcc committed Dec 2, 2024
1 parent e9ab164 commit 505dd42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/ui/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 505dd42

Please sign in to comment.