Skip to content

Commit

Permalink
Merge pull request #73 from anlaital/70
Browse files Browse the repository at this point in the history
Fixes #70 ('TPKeyboardAvoiding_contentInsetForKeyboard sometimes return huge values')
  • Loading branch information
michaeltyson committed Nov 27, 2013
2 parents ba9e32f + 46e10fc commit a8b0013
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ - (UIEdgeInsets)TPKeyboardAvoiding_contentInsetForKeyboard {
TPKeyboardAvoidingState *state = self.keyboardAvoidingState;
UIEdgeInsets newInset = self.contentInset;
CGRect keyboardRect = state.keyboardRect;
newInset.bottom = keyboardRect.size.height - (CGRectGetMaxY(keyboardRect) - CGRectGetMaxY(self.bounds));
newInset.bottom = keyboardRect.size.height - (CGRectGetMaxY(keyboardRect) - self.bounds.size.height);
return newInset;
}

Expand Down

0 comments on commit a8b0013

Please sign in to comment.