Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scrollview was inited with the wrong frame

  • Loading branch information...
commit a62d3fe7d3a17b4811e4b7cc8850c3951f302bc6 1 parent cc2df63
@jksk authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.