Results 1 to 2 of 2

Thread: How to avoid the scrollbar in a combo box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    216
    Answers
    4

    Default How to avoid the scrollbar in a combo box

    Hello,

    I'd like to avoid the scrollbar in my list of value in a combo.

    Is it possible ? When I have a certain number of values it comes automatically. I have tried autoScroll: false but it still appears. Can we decide to make it appears only if there are more lines (for example if there are more than 20 lines?

    Thanks.

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106

    Default

    See the docs for the overflowY configuration property on a Combobox. This will let you control the display of a vertical scroll bar at configuration time.

    After that, you can dynamically manipulate overflow via the setOverflowXY() method.

    Also take a look at the listConfig property, where this gives you control over the BoundList associated with the Combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •