mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-09 04:07:12 +00:00
fixed: 1xp glitch with CPSegmentedControl in safari
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user