Backed out changeset 49744f943e16 (bug 1682136) for putting browser window partially behind left and top taskbars on older Windows versions (bug 1705504).

This commit is contained in:
Csoregi Natalia 2021-04-18 11:32:17 +03:00
Родитель 2f49e1c389
Коммит f20340f115
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -1287,7 +1287,6 @@ bool AppWindow::LoadPositionFromXUL(int32_t aSpecWidth, int32_t aSpecHeight) {
gotPosition = true;
}
bool allowSlop = false;
if (gotPosition) {
// our position will be relative to our parent, if any
nsCOMPtr<nsIBaseWindow> parent(do_QueryReferent(mParentWindow));
@ -1304,10 +1303,9 @@ bool AppWindow::LoadPositionFromXUL(int32_t aSpecWidth, int32_t aSpecHeight) {
}
} else {
StaggerPosition(specX, specY, cssWidth, cssHeight);
allowSlop = true;
}
}
mWindow->ConstrainPosition(allowSlop, &specX, &specY);
mWindow->ConstrainPosition(false, &specX, &specY);
if (specX != currX || specY != currY) {
SetPositionDesktopPix(specX, specY);
}