Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix content sizing bug for horizontal grid views #95

Merged
merged 1 commit into from

2 participants

@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)

@rbruels 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 evadne merged commit b3270c6 into AlanQuatermain:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 28, 2011
  1. @rbruels

    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
View
2  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];
Something went wrong with that request. Please try again.