Skip to content

Commit

Permalink
- fix thumb width/height
Browse files Browse the repository at this point in the history
  • Loading branch information
honcheng committed Aug 16, 2012
1 parent 275eff7 commit bc29999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StyledPageControlDemo/PageControlDemo/StyledPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ - (void)drawRect:(CGRect)rect
{
if (i==_currentPage)
{
[aSelectedThumbImage drawInRect:CGRectMake(x,(self.frame.size.height-_diameter)/2,_diameter,_diameter)];
[aSelectedThumbImage drawInRect:CGRectMake(x,(self.frame.size.height-aSelectedThumbImage.size.height)/2,aSelectedThumbImage.size.width,aSelectedThumbImage.size.height)];
}
else
{
[aThumbImage drawInRect:CGRectMake(x,(self.frame.size.height-_diameter)/2,_diameter,_diameter)];
[aThumbImage drawInRect:CGRectMake(x,(self.frame.size.height-aThumbImage.size.height)/2,aThumbImage.size.width,aThumbImage.size.height)];
}
}
}
Expand Down

0 comments on commit bc29999

Please sign in to comment.