Permalink
Browse files

Set proper content offset after cell drawing.

  • Loading branch information...
1 parent a95fac6 commit 327afde70b907ae0aca5f8e42ee20be87824b196 @renspr renspr committed Jan 8, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 MMGridView/Classes/MMGridView.m
@@ -133,6 +133,8 @@ - (void)drawRect:(CGRect)rect
[self.scrollView addSubview:cell];
}
+
+ [self.scrollView setContentOffset: CGPointMake(self.scrollView.frame.size.width * self.currentPageIndex, 0)];
}
}

0 comments on commit 327afde

Please sign in to comment.