Running version: 5.1.0.100

I've found that Ext.grid.plugin.BufferedRenderer.refreshSize can be called when there are no records loaded yet in the grid (this might have been true before also, I don't know). I haven't put much effort into analyzing if I'm the cause of the refresh call or not (call stack doesn't contain my code at least).


Problem is that the following code fails in this case:


Line 327-329:



Code:



if (view.all.endIndex === (me.store.getCount()) - 1) {
me.stretchView(view, me.scrollHeight = me.bodyTop + view.body.dom.offsetHeight);
}

view.all.endIndex === -1 and me.strore.getCount() === 0 as the view isn't rendered yet view.body.dom will be undefined.

If you need more details on my grid configuration that triggers this case please request this!