Skip to content

Commit

Permalink
view now also calls viewDidResize on frame changes
Browse files Browse the repository at this point in the history
  • Loading branch information
racarone committed Nov 27, 2015
1 parent bc47c53 commit 6598204
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sparrow/src/Classes/SPView.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,20 @@ + (Class)layerClass
- (void)layoutSubviews
{
[super layoutSubviews];

[_viewController viewDidResize:self.frame];
[_viewController render];
}

- (void)setFrame:(CGRect)frame
{
if (!CGRectEqualToRect(frame, super.frame))
{
super.frame = frame;
[_viewController viewDidResize:self.frame];
}
}

@end

@implementation SPView (Internal)
Expand Down

0 comments on commit 6598204

Please sign in to comment.