开发者

Horizontal scroll bar in combo box in GXT

开发者 https://www.devze.com 2023-01-15 00:34 出处:网络
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 al

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 i开发者_运维百科tems. 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?


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; }


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消