diff --git a/AppKit/CPSegmentedControl.j b/AppKit/CPSegmentedControl.j index c2dd3a21f..77968d693 100644 --- a/AppKit/CPSegmentedControl.j +++ b/AppKit/CPSegmentedControl.j @@ -561,10 +561,11 @@ CPSegmentSwitchTrackingMomentary = 2; } else if (aName === "right-segment-bezel") { - return CGRectMake(CGRectGetWidth([self bounds]) - contentInset.right, - bezelInset.top, - contentInset.right, - height); + // we have to FLOOR the coordinates to prevent a 1px glitch in Safari + return CGRectMake(FLOOR(CGRectGetWidth([self bounds]) - contentInset.right), + FLOOR(bezelInset.top), + FLOOR(contentInset.right), + FLOOR(height)); } else if (aName.indexOf("segment-bezel") === 0) {