It should not make any difference but I did the change as it is cleaner 
like that.

Philippe

Le 05/10/13 20:38, Javier Soto a écrit :
>
> In JSBadgeView/JSBadgeView.m:
>
> > @@ -195,7 +195,9 @@ - (void)layoutSubviews
> >      newFrame.origin.x += _badgePositionAdjustment.x;
> >      newFrame.origin.y += _badgePositionAdjustment.y;
> >
> > -    self.frame = CGRectIntegral(newFrame);
> > +    // Do not set frame directly so we do not interfere with any potential transform set on the view.
> > +    self.center = CGPointMake(CGRectGetMidX(newFrame), CGRectGetMidY(newFrame));
> > +    self.bounds = CGRectIntegral(newFrame);
>
> I think the bounds should have origin 0,0 though.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/JaviSoto/JSBadgeView/pull/12/files#r6784526>.
>