mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Check if panel monitor overview alloc fixes #1592
This commit is contained in:
25
overview.js
25
overview.js
@@ -690,17 +690,20 @@ var Overview = class {
|
||||
let startX = -xOff;
|
||||
let startY = -yOff;
|
||||
const panel = Utils.find(global.dashToPanel.panels, p => p.monitor.index == this._monitorIndex);
|
||||
switch (panel.getPosition()) {
|
||||
case St.Side.TOP:
|
||||
yOff += panel.panelBox.height;
|
||||
startY -= panel.panelBox.height;
|
||||
break;
|
||||
case St.Side.BOTTOM:
|
||||
yOff += panel.panelBox.height;
|
||||
break;
|
||||
case St.Side.RIGHT:
|
||||
xOff += panel.panelBox.width;
|
||||
break;
|
||||
|
||||
if (panel) {
|
||||
switch (panel.getPosition()) {
|
||||
case St.Side.TOP:
|
||||
yOff += panel.panelBox.height;
|
||||
startY -= panel.panelBox.height;
|
||||
break;
|
||||
case St.Side.BOTTOM:
|
||||
yOff += panel.panelBox.height;
|
||||
break;
|
||||
case St.Side.RIGHT:
|
||||
xOff += panel.panelBox.width;
|
||||
break;
|
||||
}
|
||||
}
|
||||
contentBox.set_origin(startX, startY);
|
||||
contentBox.set_size(xOff + contentWidth, yOff + contentHeight);
|
||||
|
||||
Reference in New Issue
Block a user