如何设置 GWT 网格的高度?
我们正在使用 GWT 2.4.0。我们在我们的应用程序中使用网格。但我们无法设置网格的高度。作为参考,请查看下图:
在上图中,您可以发现左侧带有网格的列表框有很多选项。但是我们只需要显示 10 个带有滚动条的项目。有什么办法可以实现这一点吗?请给我正确的方向。
如有帮助,将不胜感激。
We are using GWT 2.4.0. We are using Grid in our application. But we are not able to set height of a grid.For reference,please have a look into the following image:
In the above image,you can find the listbox with grid in the left side having a lot options.But we need to display only 10 items with scroll bar.Is there any way to achieve this?Throw me in right direction.
Help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你尝试过一些CSS规则吗?
示例:
编辑:
如果您使用的是 ListBox (http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/列表框.html)
Have you tried with some css rules?
Example:
EDIT:
if you are working with ListBox (http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ListBox.html)