开发者

how to set size of the dojo dropdownselect ?

I am using dojox.form.DropDownSelect (not filtering select) in my page. But I am not able to restrict the height of the dropdown. I tried using size, maxHeght etc. but the drop down leep growing as the list grows.

Is there any way to restrict the hei开发者_如何转开发ght?


I don't know if there is a convenient, documented, way already there. Did you just try to guess things or did you actually search the API reference?

In case there is not you could try inspecting the generated dom structure through Firebug. There is probably a div ot table somewhere in there that you can limit the height via a css rule.

#that_drop_down .class_of_the_convenient_div {
    height: 500px;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜