Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions APParallaxHeader/UIScrollView+APParallaxHeader.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ - (void)addParallaxWithImage:(UIImage *)image andHeight:(CGFloat)height andShado
}
else
{
APParallaxView *parallaxView = [[APParallaxView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width*2, height) andShadow:shadow];
APParallaxView *parallaxView = [[APParallaxView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, height) andShadow:shadow];
[parallaxView setClipsToBounds:YES];
[parallaxView.imageView setImage:image];

Expand Down Expand Up @@ -190,7 +190,7 @@ - (id)initWithFrame:(CGRect)frame andShadow:(BOOL)shadow {
[self setBackgroundColor:[UIColor clearColor]];

// default styling values
[self setAutoresizingMask:UIViewAutoresizingFlexibleHeight];
[self setAutoresizingMask:UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight];
[self setState:APParallaxTrackingActive];

self.imageView = [[UIImageView alloc] init];
Expand Down