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();
|
||||
}
|
||||
|
||||
mBounds.width = aWidth;
|
||||
mBounds.height = aHeight;
|
||||
// report the actual size of the window because it can be restricted
|
||||
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
|
||||
ReportSizeEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user