Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard frame is incorrect when switching between standard keyboard and a custom input view. #6

Open
sgtsquiggs opened this issue Dec 8, 2017 · 1 comment

Comments

@sgtsquiggs
Copy link

Noticed this when I was using UIPickerViews as inputViews in a scrollview with normal UITextFields.

Expected:

Keyboard helper calculates the correct frame size no matter if it is the standard keyboard or a custom input view

Actual:

Keyboard helper calculates the correct frame size for the first keyboard/inputview displayed, but then uses the previously displayed keyboard/inputview frame for the next keyboard/inputview.

This does not persist between ViewControllers.

Steps to reproduce:

  • Create a view controller containing a scrollview with two UITextFields.
  • Set one textfield to use a UIPickerView as its inputView.
  • Enable KeyboardHelper for the view controller.
  • Note the incorrect frame being used via debugger
@dlo
Copy link
Member

dlo commented Dec 9, 2017

Thanks @sgtsquiggs. What simulator were you using? If you could attach a screenshot as well and a copy of the constraint you're using to pin the scrollview, that would be super helpful as well. Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants