Skip to content

Loading…

scrollview was inited with the wrong frame #2

Merged
merged 1 commit into from

2 participants

@jksk

No description provided.

@gmoledina gmoledina merged commit 2239950 into gmoledina:master
@gmoledina
Owner

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 28, 2011
  1. @jksk
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.