Commit c8814d94 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

На получении ячейки делаем увеличение размеров (падение при принятии изменений).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59798 954022d7-b5bf-4e40-9824-e11837661b57
parent 1c823461
...@@ -4568,8 +4568,11 @@ ...@@ -4568,8 +4568,11 @@
* @return {Range} * @return {Range}
*/ */
WorksheetView.prototype._getCell = function (col, row) { WorksheetView.prototype._getCell = function (col, row) {
this.nRowsCount = Math.min(Math.max(this.model.getRowsCount() + 1, this.rows.length), gc_nMaxRow); if (this.nRowsCount < this.model.getRowsCount() + 1)
this.nColsCount = Math.min(Math.max(this.model.getColsCount() + 1, this.cols.length), gc_nMaxCol); this.expandRowsOnScroll(false, true, 0); // Передаем 0, чтобы увеличить размеры
if (this.nColsCount < this.model.getColsCount() + 1)
this.expandColsOnScroll(false, true, 0); // Передаем 0, чтобы увеличить размеры
if (col < 0 || col >= this.nColsCount || row < 0 || row >= this.nRowsCount) if (col < 0 || col >= this.nColsCount || row < 0 || row >= this.nRowsCount)
return null; return null;
...@@ -8112,7 +8115,7 @@ ...@@ -8112,7 +8115,7 @@
buildRecalc(t.model.workbook); buildRecalc(t.model.workbook);
unLockDraw(t.model.workbook); unLockDraw(t.model.workbook);
return; return;
}; }
t.expandColsOnScroll(); t.expandColsOnScroll();
t.expandRowsOnScroll(); t.expandRowsOnScroll();
...@@ -8126,7 +8129,7 @@ ...@@ -8126,7 +8129,7 @@
var oBBox = rangeF.getBBox0(); var oBBox = rangeF.getBBox0();
t.model._getCell(oBBox.r1, oBBox.c1).setValue(valF, null, true); t.model._getCell(oBBox.r1, oBBox.c1).setValue(valF, null, true);
} }
}; }
buildRecalc(t.model.workbook); buildRecalc(t.model.workbook);
unLockDraw(t.model.workbook); unLockDraw(t.model.workbook);
......
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