NSRectFillListWithColors(gridRects, colorRects, count);
- [fGradient drawInRect: rect angle: 270.0];
+ const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar
+ [fGradient drawInRect: gradientRect angle: 270.0];
}
@end
}
if (active)
- [fGradient drawInRect: rect angle: 270.0];
+ {
+ const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar
+ [fGradient drawInRect: gradientRect angle: 270.0];
+ }
else
{
gridRects[count] = rect;