Skip to content

Instantly share code, notes, and snippets.

@Thinkscape
Created October 9, 2014 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thinkscape/390378f2329b5328a36a to your computer and use it in GitHub Desktop.
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.
/**
* 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