On screen keyboard is hiding content

浪尽此生 提交于 2019-12-08 05:11:19

问题


I have an autocomplete text box that when typed in will show results in a popup directly below itself.

But when the user is using a virtual keyboard as soon as the keyboard shows it will scroll the the bottom of the textbox, This hides the results from showing when they appear.

Is there a way for me to get around this?

The only way i can think of is to set the vertical offset of the popup on each keypress that will position it above the textbox instead of below. But this is not how i would like it to work, i would much prefer the results to push the keyboard down or to scroll up the page.


回答1:


I was having the same issue, I found this helpful: http://code.msdn.microsoft.com/windowsapps/Keyboard-Events-Sample-866ba41c



来源:https://stackoverflow.com/questions/11933495/on-screen-keyboard-is-hiding-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!