Thank you for reporting this bug. We will make it our priority to review this report.
BuferedRender with shared store whith hidden grid
BuferedRender with shared store whith hidden grid
Hi all,
I don't know if it was stated before, bud there's a bug with bufferedrender plugin when you have a treepanel in a tab for example, and it is hidden becouse another tab is the current one, if you collapse any node by another component or just by code, an exception is trown, this happens becouse a resize is fired and there's a division by 0 in the onViewResize method resulting in a NaN value, so after this the grid or treepanel stops working.
Look in this fiddle, then collapse any node in any tab (they share the store):
http://ift.tt/1hGk31jThis overrides solves the problem:
Code:
Ext.override(Ext.grid.plugin.BufferedRenderer, {
//listen to panel show to refresh
init: function(grid) {
var me = this;
me.callParent(arguments);
me.grid.on('show', me.onViewRefresh, me);
},
//if it is hidden do nothing
onViewRefresh: function() {
if(this.grid.isHidden()) return;
this.callParent(arguments);
},
//release the listener made on the override
destroy: function() {
var me = this,
grid = me.grid;
if (grid) {
grid.un('show', me.onViewRefresh, me);
}
this.callParent(arguments);
}
});
lundi 14 avril 2014
BuferedRender with shared store whith hidden grid
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire