GXT 组合框中的水平滚动条

发布于 2024-09-16 23:55:59 字数 157 浏览 3 评论 0原文

我正在与 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

想挽留 2024-09-23 23:55:59

您可以从位置“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;
}

羁客 2024-09-23 23:55:59

可能对您来说不是很有用,但我们发现为水平滚动创建一个漂亮的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文