grid now keeps its average height setting after clearing

This commit is contained in:
Andreas Stöckel 2011-09-09 14:40:28 +00:00
parent 2290b04102
commit 1b74d53608

View File

@ -119,6 +119,7 @@ var et2_dataview_grid = Class.extend(et2_dataview_IViewRange, {
clear: function() {
// Free the partition tree and recreate it
this._avgHeight = this._partitionTree.getAverageHeight();
this._partitionTree.free();
this._partitionTree = new et2_dataview_partitionTree(this._dataProvider,
this._rowProvider, this._avgHeight, this.innerTbody);