From b51aec35cf7f85a5f2000e523a05132acc930abc Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 13 Jan 2021 14:14:36 +0300 Subject: [PATCH] Remove caption from chart type menu --- apps/documenteditor/main/app/view/Toolbar.js | 4 ++-- apps/presentationeditor/main/app/view/DocumentHolder.js | 2 +- apps/presentationeditor/main/app/view/Toolbar.js | 4 ++-- apps/spreadsheeteditor/main/app/view/Toolbar.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 96f8edd31..2216deaf0 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1749,7 +1749,7 @@ define([ this.paragraphControls.push(this.mnuInsertPageCount); this.btnInsertChart.setMenu( new Common.UI.Menu({ - style: 'width: 364px;', + style: 'width: 364px;padding-top: 12px;', items: [ {template: _.template('')} ] @@ -1761,7 +1761,7 @@ define([ parentMenu: menu, showLast: false, restoreHeight: 421, - groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData(true)), + groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), itemTemplate: _.template('
\">
') }); diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 2dcd960cb..ad98dd470 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -3651,7 +3651,7 @@ define([ if (!menu) { this.placeholderMenuChart = menu = new Common.UI.Menu({ - style: 'width: 364px;', + style: 'width: 364px;padding-top: 12px;', items: [ {template: _.template('')} ] diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 2eaf49a69..96b05e24b 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1164,7 +1164,7 @@ define([ ); this.btnInsertChart.setMenu( new Common.UI.Menu({ - style: 'width: 364px;', + style: 'width: 364px;padding-top: 12px;', items: [ {template: _.template('')} ] @@ -1176,7 +1176,7 @@ define([ parentMenu: menu, showLast: false, restoreHeight: 421, - groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData(true)), + groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), itemTemplate: _.template('
\">
') }); diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index d92da5d34..55fc100dd 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -1862,7 +1862,7 @@ define([ if ( this.btnInsertChart ) { this.btnInsertChart.setMenu(new Common.UI.Menu({ - style: 'width: 364px;', + style: 'width: 364px;padding-top: 12px;', items: [ { template: _.template('') } ] @@ -1874,7 +1874,7 @@ define([ parentMenu: menu, showLast: false, restoreHeight: 421, - groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData(true)/*.concat(Common.define.chartData.getSparkGroupData(true))*/), + groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()/*.concat(Common.define.chartData.getSparkGroupData(true))*/), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()/*.concat(Common.define.chartData.getSparkData())*/), itemTemplate: _.template('
\">
') });