IdleHandsApps/IHKeyboardAvoiding

Issues when rotating device while keyboard is showing up

Opened this issue · 2 comments

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.

any solution yet for this

Came across this myself. Anything yet?