adjust the action button's image placement
This commit is contained in:
parent
addaba3633
commit
2f3b43ff8e
|
@ -41,8 +41,7 @@
|
||||||
- (void) drawRect: (NSRect) rect
|
- (void) drawRect: (NSRect) rect
|
||||||
{
|
{
|
||||||
NSImage * image = [[self cell] isHighlighted] ? fImagePressed : fImage;
|
NSImage * image = [[self cell] isHighlighted] ? fImagePressed : fImage;
|
||||||
[image drawInRect: rect fromRect: NSMakeRect(0.0, 0.0, [image size].width, [image size].height)
|
[image drawInRect: [self bounds] fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
|
||||||
operation: NSCompositeSourceOver fraction: 1.0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue