зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446264 part 2 - Ignore XUL position when sizemode is maximized. r=bz
MozReview-Commit-ID: 2NTZBeehXam --HG-- extra : rebase_source : 0359b7d6237e7cb70e785141d7914dce10ef2c47
This commit is contained in:
Родитель
5083a5d2e4
Коммит
4ac1f60c1e
|
@ -1364,10 +1364,11 @@ bool nsXULWindow::LoadMiscPersistentAttributesFromXUL()
|
|||
auto* piWindow = nsPIDOMWindowOuter::From(ourWindow);
|
||||
piWindow->SetFullScreen(true);
|
||||
} else {
|
||||
// For maximized windows, ignore the XUL size attributes, as setting the
|
||||
// size would set the window back to the normal sizemode.
|
||||
// For maximized windows, ignore the XUL size and position attributes,
|
||||
// as setting them would set the window back to normal sizemode.
|
||||
if (sizeMode == nsSizeMode_Maximized) {
|
||||
mIgnoreXULSize = true;
|
||||
mIgnoreXULPosition = true;
|
||||
}
|
||||
mWindow->SetSizeMode(sizeMode);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче