changed TPKeyboardAvoiding_contentInsetForKeyboard to use self.frame instead of self.bounds which was causes the scroll view to not take into consideration the y position of the scrollview when figuring out how to set the insets. Though its still not completely fixed because I believe it needs to take into account the y value relative to the top of the screen, but I don't know for sure yet.