This should make the filter buttons work a bit better.
This commit is contained in:
parent
090d309803
commit
7a53b3b54d
|
@ -58,6 +58,9 @@
|
|||
[[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.6] set];
|
||||
[rect fill];
|
||||
[fButtonDown unlockFocus];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resetBounds:)
|
||||
name: NSViewBoundsDidChangeNotification object: nil];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -155,4 +158,9 @@
|
|||
[self setImage: fEnabled ? fButtonIn : fButtonNormal];
|
||||
}
|
||||
|
||||
- (void) resetBounds: (NSNotification *) notification
|
||||
{
|
||||
[self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue