Skip to content

Commit

Permalink
use superview's bounds instead of frame. fixes #4
Browse files Browse the repository at this point in the history
Thanks @gstevenson!
  • Loading branch information
lobianco committed Aug 29, 2013
1 parent 04f8878 commit 07cfb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ALAlertBanner/ALAlertBannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ -(void)updateSizeAndSubviewsAnimated:(BOOL)animated

CGRect oldBounds = self.layer.bounds;
CGRect newBounds = oldBounds;
newBounds.size = CGSizeMake(self.parentView.frame.size.width, heightForSelf);
newBounds.size = CGSizeMake(self.parentView.bounds.size.width, heightForSelf);
self.layer.bounds = newBounds;

if (animated)
Expand Down

0 comments on commit 07cfb26

Please sign in to comment.