Created
October 9, 2014 08:11
-
-
Save Thinkscape/390378f2329b5328a36a to your computer and use it in GitHub Desktop.
Work around trees/grids that will not render correctly in case they are hidden from the view (i.e. in a Tab) but data has changed.
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
/** | |
* Work around trees/grids that will not render correctly in case they are hidden from the view (i.e. in a Tab) but | |
* data has changed. | |
*/ | |
Ext.define('Ext.bugfix.BufferedRenderer', { | |
override: 'Ext.grid.plugin.BufferedRenderer', | |
getLastVisibleRowIndex: function() { | |
var result = this.callParent(arguments); | |
return isNaN(result) ? 0 : result; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment