Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix content sizing bug for horizontal grid views #95

Merged
merged 1 commit into from

2 participants

Ryan Bruels Evadne Wu
Ryan Bruels

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)

Ryan Bruels rbruels 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)
294aa55
Evadne Wu evadne merged commit b3270c6 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 28, 2011
  1. Ryan Bruels

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

    rbruels authored
    …causing horizontally-oriented scroll views to always bounce vertically (because the content size height was always +1px)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Classes/AQGridView.m
2  Classes/AQGridView.m
View
@@ -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];
Something went wrong with that request. Please try again.