Permalink
Browse files

Merge pull request #2 from jksk/master

scrollview was inited with the wrong frame
  • Loading branch information...
2 parents cc2df63 + a62d3fe commit 2239950fcc9bb61cbdc733dc64a49cc3c1b27fac @gmoledina committed Nov 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 GMGridView/API/GMGridView.m
View
2 GMGridView/API/GMGridView.m
@@ -160,7 +160,7 @@ - (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame]))
{
- _scrollView = [[UIScrollView alloc] initWithFrame:frame];
+ _scrollView = [[UIScrollView alloc] initWithFrame:[self bounds]];
_scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_scrollView.backgroundColor = [UIColor clearColor];
_scrollView.delegate = self;

0 comments on commit 2239950

Please sign in to comment.