Skip to content

Commit

Permalink
Fix window maximise issue in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Porter authored and Francisco Ryan Tolmasky I committed Sep 16, 2009
1 parent b21b08f commit 7728d8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions AppKit/Platform/DOM/CPPlatformWindow+DOM.j
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7728d8a

Please sign in to comment.