Fix offset when top panel is shown

This commit is contained in:
Shadab
2021-05-07 00:24:49 +06:00
parent 1e46333210
commit fd3a7d4859

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;
}