When a Xul’s listbox have more itens than it can show, the doc says “A scroll bar will appear that the user can use to display the additional rows”.
Is there a way of disable the scroll bar so that it will never appear?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a hack and is not guaranteed to work in future versions, but you could put this in your stylesheet:
<listboxbody> is an anonymous element hosting the <listitem> elements of the listbox (you can see it with the DOM inspector), and it’s this element, not the listbox itself has the scrollbars via the overflow property (also can be observed in the DOMi).