mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
5083a5d2e4
commit
4ac1f60c1e
@ -1364,10 +1364,11 @@ bool nsXULWindow::LoadMiscPersistentAttributesFromXUL()
|
|||||||
auto* piWindow = nsPIDOMWindowOuter::From(ourWindow);
|
auto* piWindow = nsPIDOMWindowOuter::From(ourWindow);
|
||||||
piWindow->SetFullScreen(true);
|
piWindow->SetFullScreen(true);
|
||||||
} else {
|
} else {
|
||||||
// For maximized windows, ignore the XUL size attributes, as setting the
|
// For maximized windows, ignore the XUL size and position attributes,
|
||||||
// size would set the window back to the normal sizemode.
|
// as setting them would set the window back to normal sizemode.
|
||||||
if (sizeMode == nsSizeMode_Maximized) {
|
if (sizeMode == nsSizeMode_Maximized) {
|
||||||
mIgnoreXULSize = true;
|
mIgnoreXULSize = true;
|
||||||
|
mIgnoreXULPosition = true;
|
||||||
}
|
}
|
||||||
mWindow->SetSizeMode(sizeMode);
|
mWindow->SetSizeMode(sizeMode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user