Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
clean up from PR #841
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Mar 17, 2015
1 parent acb047f commit 3e69f1f
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,8 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
if (CGRectEqualToRect(newKeyboardFrame, oldKeyboardFrame) || CGRectIsNull(newKeyboardFrame)) {
return;
}


// we should convert
CGRect keyboardEndFrameConverted = [self.contextView convertRect:newKeyboardFrame fromView:nil];

// do not convert frame to contextView coordinates here
// KVO is triggered during panning (see below)
// panning occurs in contextView coordinates already
[self jsq_notifyKeyboardFrameNotificationForFrame:keyboardEndFrameConverted];
}
}
Expand Down

0 comments on commit 3e69f1f

Please sign in to comment.