2

I can't display the entire content of my elements in my <t:selectOneListbox> which renders a HTML <select> element. How can I add a horizontal scrollbar to a <t:selectOneListbox>?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555

1 Answers1

1

This is a MSIE-only bug. When you set a fixed width on a HTML <select> element, then MSIE will also apply this on the opened list while the normal webbrowsers like Firefox, Chrome and others will expand the list to the content width.

This is not specific to JSF and cannot be solved by JSF. There are a lot of solutions for this particular issue, the majority is JavaScript based. You can find them all in this question: Dropdownlist width in IE.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555