mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
b=793501 don't resize toplevel window in response to resized notification r=bz
--HG-- extra : transplant_source : U%3E%D3b%3D%AE0%0D%C7%8D%27%F5a%D4%F6%2C%27%EE%EA%A1
This commit is contained in:
parent
06d7fccaeb
commit
257facb956
@ -1869,19 +1869,9 @@ DocumentViewerImpl::SetBounds(const nsIntRect& aBounds)
|
||||
|
||||
mBounds = aBounds;
|
||||
if (mWindow) {
|
||||
// When attached to a top level window, change the client area, not the
|
||||
// window frame.
|
||||
// Don't have the widget repaint. Layout will generate repaint requests
|
||||
// during reflow.
|
||||
if (mAttachedToParent) {
|
||||
if (aBounds.x != 0 || aBounds.y != 0) {
|
||||
mWindow->ResizeClient(aBounds.x, aBounds.y,
|
||||
aBounds.width, aBounds.height,
|
||||
false);
|
||||
} else {
|
||||
mWindow->ResizeClient(aBounds.width, aBounds.height, false);
|
||||
}
|
||||
} else {
|
||||
if (!mAttachedToParent) {
|
||||
// Don't have the widget repaint. Layout will generate repaint requests
|
||||
// during reflow.
|
||||
mWindow->Resize(aBounds.x, aBounds.y,
|
||||
aBounds.width, aBounds.height,
|
||||
false);
|
||||
|
Loading…
Reference in New Issue
Block a user