IdleHandsApps / IHKeyboardAvoiding

IHKeyboardAvoiding is an elegant solution for keeping any UIView visible when the keyboard is being shown - no UIScrollView required!
MIT License
1.41k stars 150 forks source link

Issues when rotating device while keyboard is showing up #38

Open hansolowireless opened 7 years ago

hansolowireless commented 7 years ago

How to reproduce:

Set a container view with a textfield inside, and a bottom constraint from the container to the bottom layout guide in a View Controller. Set the container view as the avoiding view.

Click on the textfield on an iPad while in landscape. The keyboard comes up. While the keyboard is showing up turn the iPad to portrait.

While in portrait dismiss the keyboard. The view goes down way further than it should, seems like the device thinks it is still in landscape mode, and tries to lower the view the same distance as if it were in landscape (which is greater than in portrait due to less available height).

If you repeat this process several times, (i.e. put in landscape, invoke the keyboard, turn to portrait), the view keeps going lower and lower.

ghost commented 6 years ago

any solution yet for this

ppaugh commented 5 years ago

Came across this myself. Anything yet?