View Full Version : enableTabScroll: hide scroll buttons

7 Nov 2011, 3:23 AM
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?


7 Nov 2011, 9:02 AM
I don't think there is a way to dynamically hide/show the scroll buttons minus going in and doing it manually.

8 Nov 2011, 1:00 AM
Initially, the scroll buttons are hidden by config:

enableTabScroll: false

When the user adds a new tab, the app does:

tabPanel.enableTabScroll = true

and the scroll buttons are showed. Then, hide the buttons is impossible...

tabPanel.enableTabScroll = false