Merge pull request #1321 from oneshadab/fix-offset

Fix offset when gnome-shell top panel is shown
This commit is contained in:
Jason DeRose
2021-05-08 08:45:52 -04:00
committed by GitHub

View File

@@ -861,10 +861,12 @@ var dtpPanel = Utils.defineClass({
}
if (this.checkIfVertical()) {
let viewHeight = this.monitor.height - gsTopPanelOffset;
if (anchor === Pos.MIDDLE) {
anchorPlaceOnMonitor = (this.monitor.height - h) / 2;
anchorPlaceOnMonitor = (viewHeight - h) / 2;
} else if (anchor === Pos.END) {
anchorPlaceOnMonitor = this.monitor.height - h;
anchorPlaceOnMonitor = viewHeight - h;
} else { // Pos.START
anchorPlaceOnMonitor = 0;
}