Commit 3d265b15 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add shift pivot table if page fields do not fit on above

parent c9b8a23f
......@@ -4881,6 +4881,12 @@
var cacheFields = pivotTable.asc_getCacheFields();
var pivotFields = pivotTable.asc_getPivotFields();
var pageFields = pivotTable.asc_getPageFields();
pos = 0 < pivotTable.pageFieldsPositions.length && pivotTable.pageFieldsPositions[0];
if (pos && 0 > pos.row) {
// ToDo add check exist data in cells
pivotTable.getRange().setOffset(new AscCommonExcel.CRangeOffset(0, -1 * pos.row));
pivotTable.init();
}
for (var i = 0; i < pivotTable.pageFieldsPositions.length; ++i) {
pos = pivotTable.pageFieldsPositions[i];
cells = this.getRange3(pos.row, pos.col, pos.row, pos.col);
......
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