Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
Refactor innerGlowFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
Reda Lemeden committed Oct 12, 2012
1 parent f4af1c0 commit 60173df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Custom UIButtons/CBLayer.m
Expand Up @@ -161,7 +161,7 @@ - (void)drawInnerGlow
_innerGlow = [CALayer layer];

// Set the frame (1pt inset)
CGRect innerGlowFrame = CGRectMake(CGRectGetMinX(self.bounds)+1, CGRectGetMinY(self.bounds)+1, CGRectGetWidth(self.bounds)-2, CGRectGetHeight(self.bounds)-2);
CGRect innerGlowFrame = CGRectInset(self.bounds, 1, 1);
_innerGlow.frame = innerGlowFrame;

_innerGlow.cornerRadius= 4.5f;
Expand Down

0 comments on commit 60173df

Please sign in to comment.