shafi khan
shafi khan

Reputation: 85

Increase ExtJS TabBar scrolling speed within TabPanel

I have a ExtJS tabpanel with lots of tabs. The current scrolling speed to scroll the tabpanel's title bar is very slow. Is there any way to increase the speed?

When I made the following modification directly to ext-all-debug.js, the speed increased

Ext.define('Ext.layout.container.boxOverflow.Scroller', {
    //The number of pixels to scroll by on scroller click
    scrollIncrement: 400 // increased from 20
}

Instead of directly editing ext-all-debug.js, I am looking for ways to override that particular config parameter at the time of TabPanel initialization. Any pointers would be helpful :)

Upvotes: 2

Views: 773

Answers (1)

Guilherme Lopes
Guilherme Lopes

Reputation: 4760

Like MarthyM said, override it:

Ext.define('Ext.override.layout.container.boxOverflow.Scroller', {
    override : 'Ext.layout.container.boxOverflow.Scroller',
    //The number of pixels to scroll by on scroller click
    scrollIncrement: 400 // increased from 20
});

Upvotes: 2

Related Questions