From 5c2c561321bfaf721096f95033b2fe04a450c5d5 Mon Sep 17 00:00:00 2001 From: Sri Panyam Date: Wed, 22 Aug 2012 09:55:06 +1000 Subject: [PATCH] Update OpenFlow/AFOpenFlowView.m The scrollview should actually be positioned at (0,0) which is why it should be inited with the View's bounds instead of frame. --- OpenFlow/AFOpenFlowView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenFlow/AFOpenFlowView.m b/OpenFlow/AFOpenFlowView.m index b3df528..5274139 100644 --- a/OpenFlow/AFOpenFlowView.m +++ b/OpenFlow/AFOpenFlowView.m @@ -53,7 +53,7 @@ - (void)setUpInitialState { offscreenCovers = [[NSMutableSet alloc] init]; onscreenCovers = [[NSMutableDictionary alloc] init]; - scrollView = [[UIScrollView alloc] initWithFrame:self.frame]; + scrollView = [[UIScrollView alloc] initWithFrame:self.bounds]; scrollView.userInteractionEnabled = NO; scrollView.multipleTouchEnabled = NO; scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;