зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2f49e1c389
Коммит
f20340f115
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче