A little less buggy filter buttons (but not bug-free).
This commit is contained in:
parent
bfc06d450c
commit
bbad665cd0
|
@ -37,4 +37,6 @@
|
||||||
- (void) setText: (NSString *) text;
|
- (void) setText: (NSString *) text;
|
||||||
- (void) setEnabled: (BOOL) enable;
|
- (void) setEnabled: (BOOL) enable;
|
||||||
|
|
||||||
|
- (void) resetBounds: (NSNotification *) notification;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
- (void) resetBounds: (NSNotification *) notification
|
- (void) resetBounds: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
[self removeTrackingRect: fTrackingTag];
|
[self removeTrackingRect: fTrackingTag];
|
||||||
[self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
fTrackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -1522,6 +1522,12 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
NSSize minSize = [fWindow contentMinSize];
|
NSSize minSize = [fWindow contentMinSize];
|
||||||
minSize.height += heightChange;
|
minSize.height += heightChange;
|
||||||
[fWindow setContentMinSize: minSize];
|
[fWindow setContentMinSize: minSize];
|
||||||
|
|
||||||
|
//reset tracking rects for filter buttons
|
||||||
|
[fNoFilterButton resetBounds: nil];
|
||||||
|
[fSeedFilterButton resetBounds: nil];
|
||||||
|
[fDownloadFilterButton resetBounds: nil];
|
||||||
|
[fPauseFilterButton resetBounds: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) toggleFilterBar: (id) sender
|
- (void) toggleFilterBar: (id) sender
|
||||||
|
|
Loading…
Reference in New Issue