GWT与水平滚动的水平的盘区 [英] GWT Horizontal panel with horizontal scrolling

查看:84
本文介绍了GWT与水平滚动的水平的盘区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在水平面板上实现水平滚动?



或任何其他面板可用于实现下面提到的功能 -



需求是我创建了一个搜索栏,其中搜索项目在用户输入时被添加(类似于这个 - http://documentcloud.github.com/visualsearch/
好​​吧,我的功能工作,甚至看起来很相似,但挣扎在水平面板。我使用水平面板作为搜索栏,并在其中嵌入了一个提示框。所以当用户输入数据时,搜索项目被添加到水平面板。但是当添加搜索项目时,水平面板会增大并移出屏幕,并出现浏览器的水平滚动条。但是我想要水平面板上的滚动条。
这可以实现吗?
想要一些想法...任何帮助表示赞赏。
Thanks。

解决方案

您可能需要使用css overflow-x属性。如果您想要滚动,请将值设置为滚动或自动。如果您需要以特定方式约束div的大小,您可能需要以预设的方式进行控制。


Is there a way to get horizontal scrolling implemented in a horizontal panel ?

or any other panel can be used to achieve the functionality mentioned below -

The requirement is that i am creating a search bar where search items are being added as and when user inputs them (something similar to this - http://documentcloud.github.com/visualsearch/) Well i got the functionality working and even the looks are similar but struggling on the horizontal panel. I am using a horizontal panel as a search bar and it has a suggest box embedded in it. so when user inputs data the search items are added to the horizontal panel. but as and when search items are added the horizontal panel grows in size and moves out of the screen and browser's horizontal scroll bar appears. But i wanted a scroll bar on the horizontal panel itself. Can this be achieved ? want some ideas ... any help is appreciated. Thanks.

解决方案

You may want to use the css overflow-x attribute. If you want it to scroll set the value to scroll or auto. If you need to constraint the size of the div in specific ways you may need to control it progamatically.

这篇关于GWT与水平滚动的水平的盘区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆