Permalink
Browse files

Remove the one-pixel expansion of the maximum content size. This was …

…causing horizontally-oriented scroll views to always bounce vertically (because the content size height was always +1px)
  • Loading branch information...
1 parent 87774de commit 294aa55be4986c049c9a2280cbb2a6edf59e4023 @rbruels rbruels committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/AQGridView.m
@@ -543,7 +543,7 @@ - (void) setContentSize: (CGSize) newSize
newSize.height = minimumHeight;
}
- newSize.height = fmax(newSize.height, self.frame.size.height+1);
+ newSize.height = fmax(newSize.height, self.frame.size.height);
CGSize oldSize = self.contentSize;
[super setContentSize: newSize];

0 comments on commit 294aa55

Please sign in to comment.