屏幕上的键盘隐藏了内容

屏幕上的键盘隐藏了内容

本文介绍了屏幕上的键盘隐藏了内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自动填充文本框,当键入该文本框时,将在其正下方的弹出窗口中显示结果.

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.

推荐答案

我遇到了同样的问题,我发现这很有帮助: http://code.msdn.microsoft.com/windowsapps/Keyboard-Events -Sample-866ba41c

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

这篇关于屏幕上的键盘隐藏了内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:04