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

export gc_nMaxCol and gc_nMaxRow

parent 6d829921
......@@ -4453,8 +4453,8 @@ function OfflineEditor () {
var left = worksheet.cols[worksheet.cols.length - 1].left;
var top = worksheet.rows[worksheet.rows.length - 1].top;
left += (gc_nMaxCol - worksheet.cols.length) * worksheet.defaultColWidth;
top += (gc_nMaxRow - worksheet.rows.length) * worksheet.defaultRowHeight;
left += (AscCommon.gc_nMaxCol - worksheet.cols.length) * worksheet.defaultColWidth;
top += (AscCommon.gc_nMaxRow - worksheet.rows.length) * worksheet.defaultRowHeight;
return [left, top];
};
......@@ -4932,7 +4932,7 @@ function OfflineEditor () {
var findVal = pxToPt(realLeftOffset + width);
var toCell = worksheet.findCellByXY(findVal, 0, true, false, true);
while (toCell.col === null && worksheet.cols.length < gc_nMaxCol) {
while (toCell.col === null && worksheet.cols.length < AscCommon.gc_nMaxCol) {
worksheet.expandColsOnScroll(true);
toCell = worksheet.findCellByXY(findVal, 0, true, false, true);
}
......@@ -4941,7 +4941,7 @@ function OfflineEditor () {
findVal = pxToPt(realTopOffset + height);
toCell = worksheet.findCellByXY(0, findVal, true, true, false);
while (toCell.row === null && worksheet.rows.length < gc_nMaxRow) {
while (toCell.row === null && worksheet.rows.length < AscCommon.gc_nMaxRow) {
worksheet.expandRowsOnScroll(true);
toCell = worksheet.findCellByXY(0, findVal, true, true, false);
}
......
......@@ -969,3 +969,8 @@ function isRealObject(obj)
{
return obj !== null && typeof obj === "object";
}
//--------------------------------------------------------export----------------------------------------------------
window['AscCommon'] = window['AscCommon'] || {};
window['AscCommon'].gc_nMaxRow = gc_nMaxRow;
window['AscCommon'].gc_nMaxCol = gc_nMaxCol;
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