mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
fix "window resizing in script causes content to be drawn on top of toolbars and tabstrip chrome". b=380192 r=smorgan sr=jst
This commit is contained in:
parent
908616f11e
commit
be05cfa434
@ -739,8 +739,10 @@ NS_IMETHODIMP nsCocoaWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRep
|
|||||||
StopResizing();
|
StopResizing();
|
||||||
}
|
}
|
||||||
|
|
||||||
mBounds.width = aWidth;
|
// report the actual size of the window because it can be restricted
|
||||||
mBounds.height = aHeight;
|
NSRect finalWindowFrame = [mWindow contentRectForFrameRect:[mWindow frame]];
|
||||||
|
mBounds.width = (nscoord)finalWindowFrame.size.width;
|
||||||
|
mBounds.height = (nscoord)finalWindowFrame.size.height;
|
||||||
|
|
||||||
// tell gecko to update all the child widgets
|
// tell gecko to update all the child widgets
|
||||||
ReportSizeEvent();
|
ReportSizeEvent();
|
||||||
|
Loading…
Reference in New Issue
Block a user