mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 03:08:22 +00:00
Fix window maximise issue in Firefox
This commit is contained in:
1 parent
b21b08f899
commit
7728d8abfb
1 file changed
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user