Results 1 to 3 of 3

Thread: enableTabScroll: hide scroll buttons

  1. #1
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    1
      0  

    Default enableTabScroll: hide scroll buttons

    In a TabPanel, when the number of tabs is five or more, I set enableTabScroll = true. When the number of tabs is minor than five, I set enableTabScroll = false, but the scroll buttons are not hidden. What's the way to hide these buttons?

    Thanks.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    I don't think there is a way to dynamically hide/show the scroll buttons minus going in and doing it manually.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User jaforom's Avatar
    Join Date
    Jun 2009
    Posts
    20
    Vote Rating
    1
      0  

    Default

    Initially, the scroll buttons are hidden by config:

    Code:
    enableTabScroll: false
    When the user adds a new tab, the app does:

    Code:
    tabPanel.enableTabScroll = true
    and the scroll buttons are showed. Then, hide the buttons is impossible...

    Code:
    tabPanel.enableTabScroll = false

    Thanks.

Tags for this Thread

Posting Permissions

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