GXT 组合框中的水平滚动条
我正在与 GXT 合作开发一个 Web 应用程序。但我发现在组合框中添加水平滚动条很困难。组合框的某些项目具有较大的文本,当我看到组合框项目时,我看不到所有文本。我没有找到为组合框设置水平滚动条的方法。 当我在网上搜索时,我发现我们必须为此实现模板,但我没有发现任何有用的东西。你能在这方面帮助我吗?
I am working with GXT to develop a web application. But I am finding difficulty in adding the horizontal scroll bar in combo box. Some of the items of the combo box have large text and I can't see all the text when I see the combo box items. I am not finding a way to set a horizontal scroll bar to the combo box.
When I searched in the net I found that we have to implement template for that, but nothing I have found useful. Can you help me in this regard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从位置“war\resources\css\gxt-all.css”的 gxt-all.css 更改组合框样式
添加“overflow:visible!important;”到 x-combo-list-inner
.x-combo-list-inner {
背景颜色:#fff;
溢出:可见!重要;
}
You can change combobox style from gxt-all.css at location "war\resources\css\gxt-all.css"
Add "overflow: visible !important;" to x-combo-list-inner
.x-combo-list-inner {
background-color:#fff;
overflow: visible !important;
}
可能对您来说不是很有用,但我们发现为水平滚动创建一个漂亮的 xtemplate 很困难。
相反,我们为任何比组合长的项目添加了工具提示。
我必须说它运作良好。
Might not be super useful for you, but we found it tough to create a nice xtemplate for h-scroll.
Instead we added tooltips for any items that are longer than the combo.
I must say that it works nicely.