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

Reports wrong size of keyboard. #2

Open
sthulesen opened this issue Feb 24, 2014 · 3 comments
Open

Reports wrong size of keyboard. #2

sthulesen opened this issue Feb 24, 2014 · 3 comments

Comments

@sthulesen
Copy link

Tested this on cheap 7 inch android tablet.
It reports Y to be 752 and height to be 0.

The normal softkeyboard size rect says top = 312 (which is not correct either of course)

Any suggestions. Should I delay my readings? Think I maybe saw different values when debugging? But can't get them now..

@sthulesen
Copy link
Author

Ok, just leaving this a comment for others.
Tried delaying for half second before reading values after receiving onKeyboardActivated.. works!
And the Y value is spot on!

@AntonPieter
Copy link

If I call MeasureKeyboard.getInstance().getKeyboardY() it will always return the height of the stage, and MeasureKeyboard.getInstance().getKeyboardHeight() will always return 0. Even after a delay of 1 second. Do I have to put something special in the application description xml to get this return the correct values?

@berkayk
Copy link

berkayk commented Mar 25, 2015

I have the same problem on Galaxy S3.

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

No branches or pull requests

3 participants