Skip to content
Browse files

scrollview was inited with the wrong frame

  • Loading branch information...
1 parent cc2df63 commit a62d3fe7d3a17b4811e4b7cc8850c3951f302bc6 @jksk 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 a62d3fe

Please sign in to comment.
Something went wrong with that request. Please try again.