jQuery.UI.autocomplete 小部件,如果没有足够的空间,则自动向上滚动列表而不是向下滚动
我正在使用 jQuery.UI.autocomplete 小部件。自动完成小部件绑定的文本框几乎位于页面(表单)的底部,因此当用户开始在那里输入时,列表会向下滚动到屏幕之外,因此您必须在浏览器中向下滚动页面才能查看完整列表而文本框上方有足够的空间。
如果文本框下方没有足够的可见空间(如正常的下拉列表),是否有任何方法可以使列表向上移动而不是向下移动?
I'm using jQuery.UI.autocomplete
widget. The textbox which autocomplete widget is bound to is located almost at the bottom of the page (form) so when user starts typing in there, the list roles down out of screen so you have to scroll down the page in browser to see the complete list while there are plenty of room above the textbox.
Is there any way to get the list to role up instead of role down if there isn't enough visible space below the textbox (like normal dropdown list)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
Use