Support for resizing windows on all sides

This commit is contained in:
Aparajita Fishman committed 2013-01-04 15:17:29 +08:00
1 parent dcdcd8e41a
commit deb6224cf8
13 files changed
+1184 -146

No files matched your search

+3 -3
View File
@@ -334,13 +334,13 @@ var STANDARD_GRADIENT_HEIGHT = 41.0;
[self _updateCloseButton];
}
- (void)mouseDown:(CPEvent)anEvent
- (BOOL)couldBeMoveEvent:(CPEvent)anEvent
{
if (![_headView isHidden])
if (CGRectContainsPoint([_headView frame], [self convertPoint:[anEvent locationInWindow] fromView:nil]))
return [self trackMoveWithEvent:anEvent];
return YES;
[super mouseDown:anEvent];
return [super couldBeMoveEvent:anEvent];
}
- (void)_enableSheet:(BOOL)enable