Created
September 1, 2011 04:17
-
-
Save EHLOVader/1185442 to your computer and use it in GitHub Desktop.
Fix for broken Grid scrollers in Extjs 4.0.2a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.require('Ext.grid.Panel',function(){ | |
Ext.override(Ext.grid.Panel, { | |
constructor: function() { | |
this.on('scrollershow', function(scroller) { | |
if (scroller && scroller.scrollEl) { | |
scroller.clearManagedListeners(); | |
scroller.mon(scroller.scrollEl, 'scroll', scroller.onElScroll, scroller); | |
} | |
}); | |
this.callOverridden(); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment