From 06bbdabb21d360ffa3f8b7785ac919d113198454 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 3 Aug 2017 12:53:07 +0300 Subject: [PATCH] [SSE] Update pivot templates when edit grand totals. --- apps/common/main/resources/less/combo-dataview.less | 4 ++++ .../main/app/controller/PivotTable.js | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/apps/common/main/resources/less/combo-dataview.less b/apps/common/main/resources/less/combo-dataview.less index e462eea4d..daf9c6fbc 100644 --- a/apps/common/main/resources/less/combo-dataview.less +++ b/apps/common/main/resources/less/combo-dataview.less @@ -278,4 +278,8 @@ margin-top: -6px; margin-bottom: -6px; + + .view .dataview { + padding: 1px; + } } \ No newline at end of file diff --git a/apps/spreadsheeteditor/main/app/controller/PivotTable.js b/apps/spreadsheeteditor/main/app/controller/PivotTable.js index 47f16bf63..8f0f79808 100644 --- a/apps/spreadsheeteditor/main/app/controller/PivotTable.js +++ b/apps/spreadsheeteditor/main/app/controller/PivotTable.js @@ -239,6 +239,18 @@ define([ needTablePictures = true; } + value = props.asc_getColGrandTotals(); + if (this._state.ColGrandTotals!==value) { + this._state.ColGrandTotals=value; + needTablePictures = true; + } + + value = props.asc_getRowGrandTotals(); + if (this._state.RowGrandTotals!==value) { + this._state.RowGrandTotals=value; + needTablePictures = true; + } + if (needTablePictures) this.onApiInitPivotStyles(this.api.asc_getTablePictures(this._originalProps, true));