Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dimming for low maximum to minimum height differences #14

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

felixLam
Copy link
Member

@felixLam felixLam commented Jul 8, 2016

The dimming view was not correctly dismissed for small maximum heights before.

@@ -324,8 +324,9 @@ - (void)setBottomHeight:(CGFloat)bottomHeight animated:(BOOL)animated {
}
CGFloat oldHeight = self.bottomHeight;
self.bottomHeight = bottomHeight;

BOOL dimmingViewHidden = (self.bottomHeight < self.dimmingThreshold * self.maximumBottomHeightCached);
CGFloat heightOverMinimum = bottomHeight - self.minimumBottomHeightCached;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.bottomHeight ? It's the same, I know, but might improve legibility.

@mollidor
Copy link
Member

mollidor commented Jul 8, 2016

👍

@felixLam felixLam merged commit 7a079fa into master Jul 8, 2016
@felixLam felixLam deleted the fix/dimmingForSmallDiffs branch July 8, 2016 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants