scrollview was inited with the wrong frame #2

Merged
merged 1 commit into from Nov 28, 2011
@@ -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;