mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Merge pull request #1321 from oneshadab/fix-offset
Fix offset when gnome-shell top panel is shown
This commit is contained in:
6
panel.js
6
panel.js
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user