Commit afe1a020 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix resize speed (clean cache redundant)

parent ef13b2dd
......@@ -654,17 +654,15 @@
return this._getRange( this.activeRange.c1, this.activeRange.r1, this.activeRange.c2, this.activeRange.r2 );
};
WorksheetView.prototype.resize = function ( isUpdate ) {
if ( isUpdate ) {
this._initCellsArea( true );
WorksheetView.prototype.resize = function (isUpdate) {
if (isUpdate) {
this._initCellsArea(true);
this._normalizeViewRange();
this._cleanCellsTextMetricsCache();
this._prepareCellTextMetricsCache();
this.updateResize = false;
this.objectRender.resizeCanvas();
}
else {
} else {
this.updateResize = true;
}
return this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment