Bug 514648 - Non-resizable windows don't have resizers, even though -[NSWindow showsResizeIndicator] pretends they do. r=josh

--HG--
extra : rebase_source : fa03586a85d48a1ef5dd6db4ac8aecaf81477216
This commit is contained in:
Markus Stange 2009-09-08 09:52:59 +12:00
parent 4ad22e5a56
commit b7c2bcf0fa

View File

@ -1182,7 +1182,8 @@ PRBool nsChildView::ShowsResizeIndicator(nsIntRect* aResizerRect)
while ((superView = [topLevelView superview]))
topLevelView = superView;
if (![[topLevelView window] showsResizeIndicator])
if (![[topLevelView window] showsResizeIndicator] ||
!([[topLevelView window] styleMask] & NSResizableWindowMask))
return PR_FALSE;
if (aResizerRect) {