TPKeyboardAvoiding icon indicating copy to clipboard operation
TPKeyboardAvoiding copied to clipboard

Two issues in landscape iPad with 1.1

Open ryanwaggoner opened this issue 11 years ago • 2 comments

I still see two issues with landscape on iPad (and yes, I'm using 1.1):

  1. Fields are still being scrolled way too high (see image).
  2. I have a full-screen scrollview, so contentSize is getting set to 1034x768, which somehow leaves me with a 10px gap at the bottom of the screen when textField has focus (see image)

ios simulator

ryanwaggoner avatar Jul 11 '13 21:07 ryanwaggoner

For my own purposes, I seem to have fixed this by setting kCalculatedContentPadding = 0, and dropping lines 240-243. Now my field is always centered vertically, which it seems like would be the preferred behavior. What am I missing?

ryanwaggoner avatar Jul 11 '13 21:07 ryanwaggoner

Hmm, interesting; what happens if you manually set your scroll view's contentSize to whatever it should be? It looks like you've got some additional chrome views in there that are messing with the content frame calculations, but if you set the content size yourself, it'll use that instead of trying to work it out by itself.

michaeltyson avatar Jul 12 '13 00:07 michaeltyson