2
votes

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 :)

1
Instead of editing the original code, you can at least override it. sencha.com/forum/…MarthyM

1 Answers

2
votes

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
});