Skip to content

Commit

Permalink
Remove the one-pixel expansion of the maximum content size. This was …
Browse files Browse the repository at this point in the history
…causing horizontally-oriented scroll views to always bounce vertically (because the content size height was always +1px)
  • Loading branch information
rbruels committed Oct 28, 2011
1 parent 87774de commit 294aa55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AQGridView.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ - (void) setContentSize: (CGSize) newSize
newSize.height = minimumHeight; 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; CGSize oldSize = self.contentSize;
[super setContentSize: newSize]; [super setContentSize: newSize];
Expand Down

0 comments on commit 294aa55

Please sign in to comment.