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