srm985 / mok-project

Multilingual Onscreen Keyboard Project
http://www.seanmcquay.com/mok-project.htm
MIT License
30 stars 8 forks source link

keyboard layout messed up when opening second time #41

Open madhuraadawadkar opened 5 years ago

madhuraadawadkar commented 5 years ago

I am binding the keyboard popup on field which is on a modal window. When I open the keyboard for the first time, everything works well. But when I close it and the modal window and re-open the keyboard, the keyboard layout is completely messed up.

image

madhuraadawadkar commented 5 years ago

This is happening because the size calculations are done when the elements are not visible. To make it work, I added a call to sizeKeys() inside pageElement.on('click touch', options.inputType, function () { This worked for me.

MarioOlivera commented 5 years ago

This is happening because the size calculations are done when the elements are not visible. To make it work, I added a call to sizeKeys() inside pageElement.on('click touch', options.inputType, function () { This worked for me.

Very Thanks!