Fix window maximise issue in Firefox

This commit is contained in:
Michael Porter authored and Francisco Ryan Tolmasky I committed 2009-09-16 15:23:42 -07:00
1 parent b21b08f899
commit 7728d8abfb
1 file changed
+8 -2
+8 -2
View File
@@ -138,12 +138,18 @@ var supportsNativeDragAndDrop = [CPPlatform supportsDragAndDrop];
var origin = [self contentRect].origin,
nativeOrigin = [self nativeContentRect].origin;
_DOMWindow.moveBy(origin.x - nativeOrigin.x, origin.y - nativeOrigin.y);
if (origin.x !== nativeOrigin.x || origin.y !== nativeOrigin.y)
{
_DOMWindow.moveBy(origin.x - nativeOrigin.x, origin.y - nativeOrigin.y);
}
var size = [self contentRect].size,
nativeSize = [self nativeContentRect].size;
_DOMWindow.resizeBy(size.width - nativeSize.width, size.height - nativeSize.height);
if (size.width !== nativeSize.width || size.height !== nativeSize.height)
{
_DOMWindow.resizeBy(size.width - nativeSize.width, size.height - nativeSize.height);
}
}
- (void)orderBack:(id)aSender