From abb23f145ec9cf3cf3698110e5dff1120e4509e8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 2 Oct 2023 12:24:36 +0300 Subject: [PATCH 1/7] Set auto height for advanced settings dialog --- .../main/resources/less/advanced-settings-window.less | 4 ++++ .../main/app/view/ExternalLinksDlg.js | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/common/main/resources/less/advanced-settings-window.less b/apps/common/main/resources/less/advanced-settings-window.less index 73c6ae6621..529221c8e9 100644 --- a/apps/common/main/resources/less/advanced-settings-window.less +++ b/apps/common/main/resources/less/advanced-settings-window.less @@ -46,6 +46,10 @@ } } + &.auto .body { + padding-bottom: 15px; + } + .footer { padding: 15px 15px 0; diff --git a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js index 8260424c97..07fcc543a5 100644 --- a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js @@ -51,7 +51,7 @@ define([ options: { alias: 'ExternalLinksDlg', contentWidth: 500, - height: 294, + height: 'auto', buttons: null }, @@ -60,7 +60,7 @@ define([ _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
', '
', '', @@ -73,7 +73,7 @@ define([ '', '', '', - '', '', @@ -84,7 +84,8 @@ define([ '' - ].join('') + ].join(''), + cls: 'advanced-settings-dlg auto' }, options); this.api = options.api; @@ -98,7 +99,6 @@ define([ this.wrapEvents = { onUpdateExternalReferenceList: _.bind(this.refreshList, this) }; - Common.Views.AdvancedSettingsWindow.prototype.initialize.call(this, this.options); }, render: function () { From c323980f632adbe085d8db8b81fd6522846ab716 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 17 Oct 2023 21:45:04 +0300 Subject: [PATCH 2/7] Set auto-height for advanced settings windows --- .../main/lib/view/AdvancedSettingsWindow.js | 29 +++++++++++++++---- .../less/advanced-settings-window.less | 6 ++-- .../main/app/view/BookmarksDialog.js | 3 +- .../main/app/view/CaptionDialog.js | 3 +- .../main/app/view/MailMergeEmailDlg.js | 5 ++-- .../main/app/view/NoteSettingsDialog.js | 3 +- .../main/app/view/RolesManagerDlg.js | 3 +- .../main/app/view/SaveFormDlg.js | 3 +- .../main/app/view/TextToTableDialog.js | 6 ++-- .../main/app/view/WatermarkSettingsDialog.js | 3 +- .../main/app/view/HeaderFooterDialog.js | 4 +-- .../template/FormatRulesManagerDlg.template | 2 +- .../main/app/template/NameManagerDlg.template | 2 +- .../app/template/ProtectRangesDlg.template | 2 +- .../ProtectedRangesManagerDlg.template | 2 +- .../main/app/template/SortDialog.template | 2 +- .../main/app/template/WatchDialog.template | 2 +- .../main/app/view/ChartDataDialog.js | 5 ++-- .../main/app/view/ChartTypeDialog.js | 4 +-- .../main/app/view/CreatePivotDialog.js | 5 ++-- .../main/app/view/CreateSparklineDialog.js | 7 ++--- .../main/app/view/ExternalLinksDlg.js | 8 ++--- .../main/app/view/FormatRulesEditDlg.js | 6 ++-- .../main/app/view/FormatRulesManagerDlg.js | 3 +- .../main/app/view/ImportFromXmlDialog.js | 7 ++--- .../main/app/view/MacroDialog.js | 5 ++-- .../main/app/view/NameManagerDlg.js | 3 +- .../main/app/view/NamedRangeEditDlg.js | 11 ++++--- .../main/app/view/NamedRangePasteDlg.js | 7 ++--- .../main/app/view/ProtectRangesDlg.js | 3 +- .../app/view/ProtectedRangesManagerDlg.js | 3 +- .../main/app/view/SortDialog.js | 3 +- .../main/app/view/SortOptionsDialog.js | 5 ++-- .../main/app/view/SpecialPasteDialog.js | 5 ++-- .../main/app/view/ValueFieldSettingsDialog.js | 9 +++--- .../main/app/view/ViewManagerDlg.js | 3 +- .../main/app/view/WatchDialog.js | 3 +- 37 files changed, 91 insertions(+), 94 deletions(-) diff --git a/apps/common/main/lib/view/AdvancedSettingsWindow.js b/apps/common/main/lib/view/AdvancedSettingsWindow.js index 32e60c7f3d..34ebd30b67 100644 --- a/apps/common/main/lib/view/AdvancedSettingsWindow.js +++ b/apps/common/main/lib/view/AdvancedSettingsWindow.js @@ -45,7 +45,7 @@ define([ initialize : function(options) { var _options = {}; _.extend(_options, { - height: 200, + height: 'auto', header: true, cls: 'advanced-settings-dlg', toggleGroup: 'advanced-settings-group', @@ -55,7 +55,7 @@ define([ }, options); this.template = options.template || [ - '
', + '
', '
', + '', '', '
', diff --git a/apps/documenteditor/main/app/view/CaptionDialog.js b/apps/documenteditor/main/app/view/CaptionDialog.js index b7b45793c1..276ed1b3b8 100644 --- a/apps/documenteditor/main/app/view/CaptionDialog.js +++ b/apps/documenteditor/main/app/view/CaptionDialog.js @@ -48,7 +48,6 @@ define([ DE.Views.CaptionDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 351, - height: 350, id: 'window-caption' }, @@ -58,7 +57,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/documenteditor/main/app/view/MailMergeEmailDlg.js b/apps/documenteditor/main/app/view/MailMergeEmailDlg.js index 6ca003f8b4..4d8be5cfa2 100644 --- a/apps/documenteditor/main/app/view/MailMergeEmailDlg.js +++ b/apps/documenteditor/main/app/view/MailMergeEmailDlg.js @@ -45,15 +45,14 @@ define([ 'text!documenteditor/main/app/template/MailMergeEmailDlg.template', DE.Views.MailMergeEmailDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'MailMergeEmail', - contentWidth: 500, - height: 435 + contentWidth: 500 }, initialize : function(options) { _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
' diff --git a/apps/documenteditor/main/app/view/NoteSettingsDialog.js b/apps/documenteditor/main/app/view/NoteSettingsDialog.js index f6353694d0..23a7ce466b 100644 --- a/apps/documenteditor/main/app/view/NoteSettingsDialog.js +++ b/apps/documenteditor/main/app/view/NoteSettingsDialog.js @@ -48,7 +48,6 @@ define([ DE.Views.NoteSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 300, - height: 395, id: 'window-note-settings', buttons: null }, @@ -59,7 +58,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/documenteditor/main/app/view/RolesManagerDlg.js b/apps/documenteditor/main/app/view/RolesManagerDlg.js index 7e6c593297..c6fd3b0f6e 100644 --- a/apps/documenteditor/main/app/view/RolesManagerDlg.js +++ b/apps/documenteditor/main/app/view/RolesManagerDlg.js @@ -52,7 +52,6 @@ define([ 'text!documenteditor/main/app/template/RolesManagerDlg.template', options: { alias: 'RolesManagerDlg', contentWidth: 500, - height: 353, buttons: null }, @@ -61,7 +60,7 @@ define([ 'text!documenteditor/main/app/template/RolesManagerDlg.template', _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
', diff --git a/apps/documenteditor/main/app/view/SaveFormDlg.js b/apps/documenteditor/main/app/view/SaveFormDlg.js index 06fbb4f93a..e3ff378a61 100644 --- a/apps/documenteditor/main/app/view/SaveFormDlg.js +++ b/apps/documenteditor/main/app/view/SaveFormDlg.js @@ -51,7 +51,6 @@ define([ 'common/main/lib/view/AdvancedSettingsWindow', options: { alias: 'SaveFormDlg', contentWidth: 320, - height: 280, buttons: null }, @@ -60,7 +59,7 @@ define([ 'common/main/lib/view/AdvancedSettingsWindow', _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/documenteditor/main/app/view/TextToTableDialog.js b/apps/documenteditor/main/app/view/TextToTableDialog.js index d0b61b8fa2..874b394b24 100644 --- a/apps/documenteditor/main/app/view/TextToTableDialog.js +++ b/apps/documenteditor/main/app/view/TextToTableDialog.js @@ -45,9 +45,7 @@ define([ DE.Views.TextToTableDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 300, - height: 405, - buttons: ['ok', 'cancel'] + contentWidth: 300 }, initialize : function(options) { @@ -56,7 +54,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js index d2f91e21c6..7684f116c5 100644 --- a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js +++ b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js @@ -76,7 +76,6 @@ define(['text!documenteditor/main/app/template/WatermarkSettings.template', DE.Views.WatermarkSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 400, - height: 442, id: 'window-watermark' }, @@ -87,7 +86,7 @@ define(['text!documenteditor/main/app/template/WatermarkSettings.template', title: this.textTitle, template: _.template( [ - '
', + '
', '
', '
', template, diff --git a/apps/presentationeditor/main/app/view/HeaderFooterDialog.js b/apps/presentationeditor/main/app/view/HeaderFooterDialog.js index 69b482694c..40ce514ae9 100644 --- a/apps/presentationeditor/main/app/view/HeaderFooterDialog.js +++ b/apps/presentationeditor/main/app/view/HeaderFooterDialog.js @@ -47,7 +47,7 @@ define(['text!presentationeditor/main/app/template/HeaderFooterDialog.template', PE.Views.HeaderFooterDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 360, - height: 415, + contentHeight: 330, buttons: null, id: 'window-header-footer' }, @@ -59,7 +59,7 @@ define(['text!presentationeditor/main/app/template/HeaderFooterDialog.template', title: this.textHFTitle, template: _.template( [ - '
', + '
', '
', '
', template, diff --git a/apps/spreadsheeteditor/main/app/template/FormatRulesManagerDlg.template b/apps/spreadsheeteditor/main/app/template/FormatRulesManagerDlg.template index b542fb59f7..f1ed78c871 100644 --- a/apps/spreadsheeteditor/main/app/template/FormatRulesManagerDlg.template +++ b/apps/spreadsheeteditor/main/app/template/FormatRulesManagerDlg.template @@ -19,7 +19,7 @@
- - diff --git a/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template b/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template index 0c69b43de8..4c07c123b8 100644 --- a/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template +++ b/apps/spreadsheeteditor/main/app/template/ProtectRangesDlg.template @@ -19,7 +19,7 @@ - diff --git a/apps/spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.template b/apps/spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.template index 1ca643e112..130eca48b4 100644 --- a/apps/spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.template +++ b/apps/spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.template @@ -21,7 +21,7 @@ - diff --git a/apps/spreadsheeteditor/main/app/template/SortDialog.template b/apps/spreadsheeteditor/main/app/template/SortDialog.template index e41022c64a..53ec59030e 100644 --- a/apps/spreadsheeteditor/main/app/template/SortDialog.template +++ b/apps/spreadsheeteditor/main/app/template/SortDialog.template @@ -19,7 +19,7 @@ - diff --git a/apps/spreadsheeteditor/main/app/template/WatchDialog.template b/apps/spreadsheeteditor/main/app/template/WatchDialog.template index 0c555cef6c..0e226bd8b4 100644 --- a/apps/spreadsheeteditor/main/app/template/WatchDialog.template +++ b/apps/spreadsheeteditor/main/app/template/WatchDialog.template @@ -8,7 +8,7 @@ - diff --git a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js index e2e723aaa0..784ec2b9f5 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js @@ -49,7 +49,6 @@ define([ SSE.Views.ChartDataDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 370, - height: 490, id: 'window-chart-data' }, @@ -59,7 +58,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
+
diff --git a/apps/spreadsheeteditor/main/app/template/NameManagerDlg.template b/apps/spreadsheeteditor/main/app/template/NameManagerDlg.template index fd60993267..d1b550e736 100644 --- a/apps/spreadsheeteditor/main/app/template/NameManagerDlg.template +++ b/apps/spreadsheeteditor/main/app/template/NameManagerDlg.template @@ -13,7 +13,7 @@
+
+
+
+
+
', @@ -102,7 +101,7 @@ define([ '', '', '', - '', '', diff --git a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js index 724df9f466..e52fe6ed18 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js @@ -69,7 +69,7 @@ define([ SSE.Views.ChartTypeDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 370, - height: 385 + contentHeight: 300 }, initialize : function(options) { @@ -78,7 +78,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', + '', '', '
', diff --git a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js index f1e97c4844..6126f40b4a 100644 --- a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js @@ -47,7 +47,6 @@ define([ SSE.Views.CreatePivotDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 310, - height: 250, id: 'window-create-pivot' }, @@ -57,7 +56,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', @@ -87,7 +86,7 @@ define([ '', '', '', - '', '', diff --git a/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js b/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js index 3c9fcdacdf..c573b152b0 100644 --- a/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js @@ -45,8 +45,7 @@ define([ SSE.Views.CreateSparklineDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 310, - height: 195 + contentWidth: 310 }, initialize : function(options) { @@ -55,7 +54,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', + '', '
', '
', @@ -75,7 +74,7 @@ define([ '', '', '', - '', '', diff --git a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js index 07fcc543a5..75faef28e9 100644 --- a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js @@ -51,7 +51,6 @@ define([ options: { alias: 'ExternalLinksDlg', contentWidth: 500, - height: 'auto', buttons: null }, @@ -60,7 +59,7 @@ define([ _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
', '
', '
', + '', '
', '
', @@ -73,7 +72,7 @@ define([ '', '', '', - '', '', @@ -84,8 +83,7 @@ define([ '' - ].join(''), - cls: 'advanced-settings-dlg auto' + ].join('') }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index e426145df1..65aa86281b 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -51,7 +51,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', options: { alias: 'FormatRulesEditDlg', contentWidth: 491, - height: 445, + height: 'auto', id: 'window-format-rules' }, @@ -61,7 +61,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', _.extend(this.options, { title: this.txtTitleNew, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
' @@ -1499,7 +1499,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', (cmbData.length>0) && this.cmbRule.setValue((ruleType!==undefined) ? ruleType : cmbData[0].value); } this.setControls(index, this.cmbRule.getValue()); - this.setHeight(index==9 ? 445 : 355); + this.setInnerHeight(index==9 ? 360 : 270); if (rec) { var type = rec.get('type'); diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js index 06e673eb90..e00e368aa3 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js @@ -91,7 +91,6 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa options: { alias: 'FormatRulesManagerDlg', contentWidth: 560, - height: 340, buttons: ['ok', 'cancel'] }, @@ -100,7 +99,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', ].join('') diff --git a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js index fd09c73fa0..65780d9b7b 100644 --- a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js @@ -46,8 +46,7 @@ define([ SSE.Views.ImportFromXmlDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 310, - height: 200 + contentWidth: 310 }, initialize : function(options) { @@ -56,7 +55,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', + '', '', '
', @@ -76,7 +75,7 @@ define([ '', '', '', - '', '', diff --git a/apps/spreadsheeteditor/main/app/view/MacroDialog.js b/apps/spreadsheeteditor/main/app/view/MacroDialog.js index 9f36ca3799..f9001a4b05 100644 --- a/apps/spreadsheeteditor/main/app/view/MacroDialog.js +++ b/apps/spreadsheeteditor/main/app/view/MacroDialog.js @@ -47,8 +47,7 @@ define([ SSE.Views.MacroDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 250, - height: 312 + contentWidth: 250 }, initialize : function(options) { @@ -57,7 +56,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', + '', '
', '
', diff --git a/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js b/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js index 75411cfeea..6356fd5113 100644 --- a/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js @@ -52,7 +52,6 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template', options: { alias: 'NameManagerDlg', contentWidth: 540, - height: 330, buttons: null, id: 'window-name-manager' }, @@ -62,7 +61,7 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template', _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
', @@ -81,10 +80,14 @@ define([ '', '', '', - '', '', + '', + '', + '', '
', + '', '
', '
', + '
', '
', '
', diff --git a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js index 42c3912d28..863d4b6b79 100644 --- a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js @@ -49,8 +49,7 @@ define([ SSE.Views.NamedRangePasteDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'NamedRangePasteDlg', - contentWidth: 250, - height: 282 + contentWidth: 250 }, initialize: function (options) { @@ -59,12 +58,12 @@ define([ _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
', '
', '', '', - '', diff --git a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js index 7dc311b38c..fbc62b9fda 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js @@ -50,7 +50,6 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', options: { alias: 'ProtectRangesDlg', contentWidth: 480, - height: 333, id: 'window-protect-ranges' }, @@ -59,7 +58,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', ].join(''), diff --git a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js index 140d0ae625..a9a3f3b1a5 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js @@ -51,7 +51,6 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.te options: { alias: 'ProtectedRangesManagerDlg', contentWidth: 490, - height: 365, buttons: null }, @@ -60,7 +59,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.te _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
', + '', '', '
', '
', diff --git a/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js b/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js index 9225804e63..13424c5470 100644 --- a/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js +++ b/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js @@ -47,8 +47,7 @@ define([ SSE.Views.SpecialPasteDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 350, - height: 385 + contentWidth: 350 }, initialize : function(options) { @@ -57,7 +56,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js index ccdc568aea..a161b59c17 100644 --- a/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js @@ -48,8 +48,7 @@ define([ SSE.Views.ValueFieldSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 284, - height: 320 + contentWidth: 284 }, initialize : function(options) { @@ -58,7 +57,7 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', '
', @@ -88,11 +87,11 @@ define([ '', '', '', - '', - '', diff --git a/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js b/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js index 136d6974da..a193c40209 100644 --- a/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js @@ -53,7 +53,6 @@ define([ options: { alias: 'ViewManagerDlg', contentWidth: 460, - height: 330, buttons: null }, @@ -62,7 +61,7 @@ define([ _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
', '
', '
', diff --git a/apps/spreadsheeteditor/main/app/view/WatchDialog.js b/apps/spreadsheeteditor/main/app/view/WatchDialog.js index 55c2828812..46f75d4d82 100644 --- a/apps/spreadsheeteditor/main/app/view/WatchDialog.js +++ b/apps/spreadsheeteditor/main/app/view/WatchDialog.js @@ -51,7 +51,6 @@ define([ 'text!spreadsheeteditor/main/app/template/WatchDialog.template', options: { alias: 'WatchDialog', contentWidth: 560, - height: 294, modal: false, buttons: null }, @@ -61,7 +60,7 @@ define([ 'text!spreadsheeteditor/main/app/template/WatchDialog.template', _.extend(this.options, { title: this.txtTitle, template: [ - '
', + '
', '
' + _.template(contentTemplate)({scope: this}) + '
', '
', '
', + '', '', '
', '
', + '', '', '
', '
', @@ -81,8 +81,8 @@ define([ '', '', '', '', '', @@ -115,8 +115,8 @@ define([ '
', '<% } else { %>', '
', - '', - '
', + '', + '
', '
', '
', - '', - '
', + '', + '
', '
', @@ -130,8 +130,8 @@ define([ '<% } %>', '', '', '', '
', - '', - '
', + '', + '
', '
', diff --git a/apps/documenteditor/main/app/view/TableSettingsAdvanced.js b/apps/documenteditor/main/app/view/TableSettingsAdvanced.js index c8736a7f31..fbb15096a6 100644 --- a/apps/documenteditor/main/app/view/TableSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/TableSettingsAdvanced.js @@ -53,7 +53,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat DE.Views.TableSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 340, - height: 436, + contentHeight: 351, toggleGroup: 'table-adv-settings-group', storageName: 'de-table-settings-adv-category' }, diff --git a/apps/documenteditor/main/resources/less/advanced-settings.less b/apps/documenteditor/main/resources/less/advanced-settings.less index 61ca58eeb1..77cdc1b459 100644 --- a/apps/documenteditor/main/resources/less/advanced-settings.less +++ b/apps/documenteditor/main/resources/less/advanced-settings.less @@ -41,6 +41,7 @@ } .canvas-box { + border: @scaled-one-px-value-ie solid @border-regular-control-ie; border: @scaled-one-px-value solid @border-regular-control; background-color: #fff; } diff --git a/apps/presentationeditor/main/app/view/ChartSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ChartSettingsAdvanced.js index 64acb63acf..2766f1d5bb 100644 --- a/apps/presentationeditor/main/app/view/ChartSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ChartSettingsAdvanced.js @@ -46,7 +46,7 @@ define([ 'text!presentationeditor/main/app/template/ChartSettingsAdvanced.tem PE.Views.ChartSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 300, - height: 342, + contentHeight: 257, toggleGroup: 'chart-adv-settings-group', properties: null, storageName: 'pe-chart-settings-adv-category', diff --git a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js index de59d1ae68..a249b3d356 100644 --- a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js @@ -48,7 +48,7 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem options: { alias: 'ImageSettingsAdvanced', contentWidth: 340, - height: 342, + contentHeight: 257, sizeOriginal: {width: 0, height: 0}, sizeMax: {width: 55.88, height: 55.88}, storageName: 'pe-img-settings-adv-category' diff --git a/apps/presentationeditor/main/app/view/ParagraphSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ParagraphSettingsAdvanced.js index 52f8f16fce..15cf6aeacf 100644 --- a/apps/presentationeditor/main/app/view/ParagraphSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ParagraphSettingsAdvanced.js @@ -49,7 +49,7 @@ define([ 'text!presentationeditor/main/app/template/ParagraphSettingsAdvanced PE.Views.ParagraphSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 370, - height: 394, + contentHeight: 309, toggleGroup: 'paragraph-adv-settings-group', storageName: 'pe-para-settings-adv-category' }, diff --git a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js index 55e6f5a7f9..40a740f55b 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js @@ -48,7 +48,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem PE.Views.ShapeSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 300, - height: 342, + contentHeight: 257, toggleGroup: 'shape-adv-settings-group', sizeOriginal: {width: 0, height: 0}, sizeMax: {width: 55.88, height: 55.88}, diff --git a/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js b/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js index 6f6020167d..c419096028 100644 --- a/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/TableSettingsAdvanced.js @@ -47,7 +47,7 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem options: { alias: 'TableSettingsAdvanced', contentWidth: 280, - height: 385, + contentHeight: 300, storageName: 'pe-table-settings-adv-category', sizeMax: {width: 55.88, height: 55.88}, }, diff --git a/apps/spreadsheeteditor/main/app/template/ChartVertAxis.template b/apps/spreadsheeteditor/main/app/template/ChartVertAxis.template index a9192b7e07..d62f4138e2 100644 --- a/apps/spreadsheeteditor/main/app/template/ChartVertAxis.template +++ b/apps/spreadsheeteditor/main/app/template/ChartVertAxis.template @@ -75,8 +75,8 @@
- -
+ +
diff --git a/apps/spreadsheeteditor/main/app/template/PrintSettings.template b/apps/spreadsheeteditor/main/app/template/PrintSettings.template index 4c46aab466..26358ff2aa 100644 --- a/apps/spreadsheeteditor/main/app/template/PrintSettings.template +++ b/apps/spreadsheeteditor/main/app/template/PrintSettings.template @@ -3,10 +3,10 @@
- -
- -
+ +
+ +
diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js index b4edaabd0c..3daa62420a 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js @@ -52,7 +52,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template' SSE.Views.ChartSettingsDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 327, - height: 535, + contentHeight: 450, toggleGroup: 'chart-settings-dlg-group', storageName: 'sse-chart-settings-adv-category' }, diff --git a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js index d7358a8d24..2ce7f4d758 100644 --- a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js +++ b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js @@ -50,7 +50,7 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ SSE.Views.DataValidationDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 320, - height: 330, + contentHeight: 245, toggleGroup: 'data-validation-group', storageName: 'sse-data-validation-category' }, diff --git a/apps/spreadsheeteditor/main/app/view/FieldSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/FieldSettingsDialog.js index 9c121dd605..4a58559816 100644 --- a/apps/spreadsheeteditor/main/app/view/FieldSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FieldSettingsDialog.js @@ -50,7 +50,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FieldSettingsDialog.templa SSE.Views.FieldSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 284, - height: 450, + contentHeight: 365, toggleGroup: 'pivot-field-settings-group', storageName: 'sse-pivot-field-settings-category' }, diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index 65aa86281b..74088a7ea5 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -51,7 +51,6 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', options: { alias: 'FormatRulesEditDlg', contentWidth: 491, - height: 'auto', id: 'window-format-rules' }, diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js index e00e368aa3..06d72a6756 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js @@ -90,8 +90,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa SSE.Views.FormatRulesManagerDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'FormatRulesManagerDlg', - contentWidth: 560, - buttons: ['ok', 'cancel'] + contentWidth: 560 }, initialize: function (options) { diff --git a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js index a075b52712..725085e273 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js @@ -48,7 +48,7 @@ define([ SSE.Views.FormatSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 284, - height: 340 + contentHeight: 255 }, initialize : function(options) { @@ -88,12 +88,12 @@ define([ this.props = options.props; this.linked = options.linked || false; - var height = this.linked ? 360 : 340; + var height = this.linked ? 275 : 255; _.extend(this.options, { title: this.textTitle, - height: height, + contentHeight: height, template: [ - '
', + '
', '
', '
', '', diff --git a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js index db9eb40631..87e56436ff 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js @@ -45,7 +45,7 @@ define([ SSE.Views.FormulaWizard = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 580, - height: 397 + contentHeight: 312 }, initialize : function(options) { @@ -53,10 +53,10 @@ define([ _.extend(this.options, { title: this.textTitle, template: [ - '
', + '
', '
', '
', - '
', + '
', '', '', '', - '', + '', '', '
', '', '
', @@ -122,6 +122,8 @@ define([ this.lblFormulaResult = $window.find('#formula-wizard-value'); this.lblFunctionResult = $window.find('#formula-wizard-lbl-val-func'); + this.contentPanel.find('.settings-panel > table').css('height', this.options.contentHeight - 7); + this._preventCloseCellEditor = false; this.afterRender(); diff --git a/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js index 96afc3daf0..7500ee2a46 100644 --- a/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js @@ -48,7 +48,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ImageSettingsAdvanced.temp SSE.Views.ImageSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 300, - height: 342, + contentHeight: 257, toggleGroup: 'image-adv-settings-group', properties: null, storageName: 'sse-image-settings-adv-category' diff --git a/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js index e9f825a4f0..b745bbe09b 100644 --- a/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js @@ -49,7 +49,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ParagraphSettingsAdvanced. SSE.Views.ParagraphSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 370, - height: 394, + contentHeight: 309, toggleGroup: 'paragraph-adv-settings-group', storageName: 'sse-para-settings-adv-category' }, diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/PivotSettingsAdvanced.js index 2c4ff2e640..77b40ff82f 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettingsAdvanced.js @@ -50,7 +50,7 @@ define([ 'text!spreadsheeteditor/main/app/template/PivotSettingsAdvanced.temp SSE.Views.PivotSettingsAdvanced = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 310, - height: 440, + contentHeight: 355, toggleGroup: 'pivot-adv-settings-group', storageName: 'sse-pivot-adv-settings-category' }, diff --git a/apps/spreadsheeteditor/main/app/view/PrintSettings.js b/apps/spreadsheeteditor/main/app/view/PrintSettings.js index c26001430c..ec0398acf3 100644 --- a/apps/spreadsheeteditor/main/app/view/PrintSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PrintSettings.js @@ -50,7 +50,7 @@ define([ 'text!spreadsheeteditor/main/app/template/PrintSettings.template', options: { alias: 'PrintSettings', contentWidth: 280, - height: 513, + contentHeight: 468, buttons: null }, @@ -61,7 +61,7 @@ define([ 'text!spreadsheeteditor/main/app/template/PrintSettings.template', _.extend(this.options, { title: (this.type == 'print') ? this.textTitle : this.textTitlePDF, template: [ - '
', + '
', '
' ].join('')); diff --git a/apps/presentationeditor/main/app/template/HeaderFooterDialog.template b/apps/presentationeditor/main/app/template/HeaderFooterDialog.template index a1012d5858..cb73e1355f 100644 --- a/apps/presentationeditor/main/app/template/HeaderFooterDialog.template +++ b/apps/presentationeditor/main/app/template/HeaderFooterDialog.template @@ -1,4 +1,4 @@ - +
', '', '', - '', + '', '', '
diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index d0718bef23..3d63718226 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -1443,7 +1443,7 @@ define([ '
' ].join('')); diff --git a/apps/presentationeditor/main/app/view/HeaderFooterDialog.js b/apps/presentationeditor/main/app/view/HeaderFooterDialog.js index 40ce514ae9..77de6dad55 100644 --- a/apps/presentationeditor/main/app/view/HeaderFooterDialog.js +++ b/apps/presentationeditor/main/app/view/HeaderFooterDialog.js @@ -48,7 +48,6 @@ define(['text!presentationeditor/main/app/template/HeaderFooterDialog.template', options: { contentWidth: 360, contentHeight: 330, - buttons: null, id: 'window-header-footer' }, @@ -57,11 +56,17 @@ define(['text!presentationeditor/main/app/template/HeaderFooterDialog.template', _.extend(this.options, { title: this.textHFTitle, + buttons: [ + {value: 'all', caption: this.applyAllText}, + {value: 'ok', caption: this.applyText, id: 'hf-dlg-btn-apply'}, + 'cancel' + ], + primary: 'all', template: _.template( [ '
', - '
', - '
', + '
', + '
', template, '
', '
', @@ -76,12 +81,7 @@ define(['text!presentationeditor/main/app/template/HeaderFooterDialog.template', '
', '
', '
', - '
', - '' + '
' ].join('') )({ scope: this diff --git a/apps/presentationeditor/main/resources/less/rightmenu.less b/apps/presentationeditor/main/resources/less/rightmenu.less index fd60a2476d..050b94e989 100644 --- a/apps/presentationeditor/main/resources/less/rightmenu.less +++ b/apps/presentationeditor/main/resources/less/rightmenu.less @@ -1,7 +1,4 @@ -.settings-panel { -} - .right-panel .settings-panel { label.input-label{ vertical-align: baseline; diff --git a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js index 784ec2b9f5..ee5dcd1599 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartDataDialog.js @@ -57,10 +57,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -106,11 +106,8 @@ define([ '
', - '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.handler = options.handler; diff --git a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js index e52fe6ed18..02359e91e1 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js @@ -69,7 +69,8 @@ define([ SSE.Views.ChartTypeDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 370, - contentHeight: 300 + contentHeight: 300, + separator: false }, initialize : function(options) { @@ -77,10 +78,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -100,10 +101,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.handler = options.handler; diff --git a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js index 6126f40b4a..77b1623c25 100644 --- a/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CreatePivotDialog.js @@ -47,6 +47,7 @@ define([ SSE.Views.CreatePivotDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { contentWidth: 310, + separator: false, id: 'window-create-pivot' }, @@ -55,10 +56,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -91,10 +92,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js b/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js index c573b152b0..0e8c2e50be 100644 --- a/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CreateSparklineDialog.js @@ -45,7 +45,8 @@ define([ SSE.Views.CreateSparklineDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 310 + contentWidth: 310, + separator: false }, initialize : function(options) { @@ -53,10 +54,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -79,10 +80,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js index 75faef28e9..2ff0c37aae 100644 --- a/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ExternalLinksDlg.js @@ -51,17 +51,18 @@ define([ options: { alias: 'ExternalLinksDlg', contentWidth: 500, - buttons: null + separator: false, + buttons: ['close'] }, initialize: function (options) { var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -77,13 +78,8 @@ define([ '
', - '
', - '
', - '
', - '' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 6042ea2f36..27a2af9911 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1835,7 +1835,7 @@ define([ '
', '', '', - '', + '', '', '' ].join('')); diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index 74088a7ea5..1e4a59ba92 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -59,12 +59,8 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', _.extend(this.options, { title: this.txtTitleNew, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - '
' - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js index 06d72a6756..cf3b7af90e 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesManagerDlg.js @@ -90,6 +90,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa SSE.Views.FormatRulesManagerDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'FormatRulesManagerDlg', + separator: false, contentWidth: 560 }, @@ -97,11 +98,8 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesManagerDlg.templa var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js index 725085e273..225cc61189 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormatSettingsDialog.js @@ -92,10 +92,10 @@ define([ _.extend(this.options, { title: this.textTitle, contentHeight: height, - template: [ - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ '
', + '
', '', '', '', '', '
', @@ -155,11 +155,8 @@ define([ '
', - '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); Common.Views.AdvancedSettingsWindow.prototype.initialize.call(this, this.options); diff --git a/apps/spreadsheeteditor/main/app/view/FormulaDialog.js b/apps/spreadsheeteditor/main/app/view/FormulaDialog.js index 4a07704abc..9650b924a4 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaDialog.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaDialog.js @@ -61,7 +61,10 @@ define([ contentTemplate : '', title : t.txtTitle, items : [], - buttons: null + buttons: [ + {value: 'ok', caption: this.okButtonText, primary: true, id: 'formula-dlg-btn-ok'}, + 'cancel' + ], }, options); this.template = options.template || [ @@ -76,11 +79,7 @@ define([ '', '
', '
', - '
', - '' + '
' ].join(''); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js index 87e56436ff..71e5b6eb3b 100644 --- a/apps/spreadsheeteditor/main/app/view/FormulaWizard.js +++ b/apps/spreadsheeteditor/main/app/view/FormulaWizard.js @@ -52,11 +52,11 @@ define([ var me = this; _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', - '', + contentStyle: 'padding: 0;', + contentTemplate: _.template([ + '
', + '
', + '
', '', '
', '', '
', @@ -81,11 +81,8 @@ define([ '
', '
', - '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.props = this.options.props; @@ -122,7 +119,7 @@ define([ this.lblFormulaResult = $window.find('#formula-wizard-value'); this.lblFunctionResult = $window.find('#formula-wizard-lbl-val-func'); - this.contentPanel.find('.settings-panel > table').css('height', this.options.contentHeight - 7); + this.innerPanel.find('> table').css('height', this.options.contentHeight - 7); this._preventCloseCellEditor = false; diff --git a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js index 65780d9b7b..38dbca1c84 100644 --- a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js @@ -46,7 +46,8 @@ define([ SSE.Views.ImportFromXmlDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 310 + contentWidth: 310, + separator: false }, initialize : function(options) { @@ -54,10 +55,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -80,10 +81,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/MacroDialog.js b/apps/spreadsheeteditor/main/app/view/MacroDialog.js index f9001a4b05..792be168b3 100644 --- a/apps/spreadsheeteditor/main/app/view/MacroDialog.js +++ b/apps/spreadsheeteditor/main/app/view/MacroDialog.js @@ -47,7 +47,8 @@ define([ SSE.Views.MacroDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 250 + contentWidth: 250, + separator: false }, initialize : function(options) { @@ -55,10 +56,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', + contentStyle: 'padding: 0 5px;', + contentTemplate: _.template([ '
', + '
', '', '', '', '', '
', @@ -76,10 +77,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.handler = options.handler; diff --git a/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js b/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js index 6356fd5113..62c5dc0a10 100644 --- a/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NameManagerDlg.js @@ -52,7 +52,8 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template', options: { alias: 'NameManagerDlg', contentWidth: 540, - buttons: null, + buttons: ['close'], + separator: false, id: 'window-name-manager' }, @@ -60,14 +61,8 @@ define([ 'text!spreadsheeteditor/main/app/template/NameManagerDlg.template', var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - '' - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js b/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js index 7d1e24d89b..01599d64a6 100644 --- a/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js @@ -58,10 +58,10 @@ define([ _.extend(this.options, { title: this.txtTitleNew, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -89,11 +89,8 @@ define([ '
', - '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js index 863d4b6b79..7133754aca 100644 --- a/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js +++ b/apps/spreadsheeteditor/main/app/view/NamedRangePasteDlg.js @@ -49,6 +49,7 @@ define([ SSE.Views.NamedRangePasteDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'NamedRangePasteDlg', + separator: false, contentWidth: 250 }, @@ -57,10 +58,10 @@ define([ _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -69,10 +70,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.handler = options.handler; diff --git a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js index fbc62b9fda..0521bd6075 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js @@ -50,6 +50,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', options: { alias: 'ProtectRangesDlg', contentWidth: 480, + separator: false, id: 'window-protect-ranges' }, @@ -57,18 +58,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - ].join(''), - buttons: [ - // { - // value: 'protect-sheet', - // caption: this.textProtect - // }, - 'ok','cancel'] - // primary: 'protect-sheet' + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js index a9a3f3b1a5..35ef6548aa 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectedRangesManagerDlg.js @@ -51,21 +51,16 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectedRangesManagerDlg.te options: { alias: 'ProtectedRangesManagerDlg', contentWidth: 490, - buttons: null + separator: false, + buttons: ['close'] }, initialize: function (options) { var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - '' - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/SortDialog.js b/apps/spreadsheeteditor/main/app/view/SortDialog.js index 4afea89969..d8b985126e 100644 --- a/apps/spreadsheeteditor/main/app/view/SortDialog.js +++ b/apps/spreadsheeteditor/main/app/view/SortDialog.js @@ -74,6 +74,7 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template', options: { alias: 'SortDialog', contentWidth: 560, + separator: false, buttons: ['ok', 'cancel'] }, @@ -81,11 +82,8 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template', var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
' - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/SortOptionsDialog.js b/apps/spreadsheeteditor/main/app/view/SortOptionsDialog.js index 06b1660608..0e133ec692 100644 --- a/apps/spreadsheeteditor/main/app/view/SortOptionsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/SortOptionsDialog.js @@ -46,7 +46,8 @@ define([ SSE.Views.SortOptionsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 230 + contentWidth: 230, + separator: false }, initialize : function(options) { @@ -54,10 +55,9 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -85,10 +85,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.props = options.props; diff --git a/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js b/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js index 13424c5470..79c409d718 100644 --- a/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js +++ b/apps/spreadsheeteditor/main/app/view/SpecialPasteDialog.js @@ -47,7 +47,8 @@ define([ SSE.Views.SpecialPasteDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 350 + contentWidth: 350, + separator: false }, initialize : function(options) { @@ -55,10 +56,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 5px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -157,10 +158,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.handler = options.handler; diff --git a/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js index a161b59c17..197ef39a6a 100644 --- a/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ValueFieldSettingsDialog.js @@ -48,7 +48,8 @@ define([ SSE.Views.ValueFieldSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { - contentWidth: 284 + contentWidth: 284, + separator: false }, initialize : function(options) { @@ -56,10 +57,10 @@ define([ _.extend(this.options, { title: this.textTitle, - template: [ - '
', - '
', - '
', + contentStyle: 'padding: 0 10px;', + contentTemplate: _.template([ + '
', + '
', '', '', '', '', '
', @@ -97,10 +98,8 @@ define([ '
', - '
', - '
', - '
' - ].join('') + '
' + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js b/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js index a193c40209..7da6b0dbf8 100644 --- a/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ViewManagerDlg.js @@ -52,18 +52,20 @@ define([ SSE.Views.ViewManagerDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({ options: { alias: 'ViewManagerDlg', - contentWidth: 460, - buttons: null + contentWidth: 460 }, initialize: function (options) { var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
', - '
', + buttons: [ + {value: 'ok', caption: this.textGoTo, primary: true}, + 'close' + ], + contentStyle: 'padding: 0;', + contentTemplate: _.template([ + '
', '
', '', '', @@ -82,15 +84,8 @@ define([ '', '
', '
', - '
', - '
', - '
', - '
', - '' - ].join('') + ].join(''))({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/app/view/WatchDialog.js b/apps/spreadsheeteditor/main/app/view/WatchDialog.js index 46f75d4d82..d7f57518c2 100644 --- a/apps/spreadsheeteditor/main/app/view/WatchDialog.js +++ b/apps/spreadsheeteditor/main/app/view/WatchDialog.js @@ -52,21 +52,16 @@ define([ 'text!spreadsheeteditor/main/app/template/WatchDialog.template', alias: 'WatchDialog', contentWidth: 560, modal: false, - buttons: null + separator: false, + buttons: ['close'] }, initialize: function (options) { var me = this; _.extend(this.options, { title: this.txtTitle, - template: [ - '
', - '
' + _.template(contentTemplate)({scope: this}) + '
', - '
', - '' - ].join('') + contentStyle: 'padding: 0;', + contentTemplate: _.template(contentTemplate)({scope: this}) }, options); this.api = options.api; diff --git a/apps/spreadsheeteditor/main/resources/less/rightmenu.less b/apps/spreadsheeteditor/main/resources/less/rightmenu.less index 7623049885..bd437b3b73 100644 --- a/apps/spreadsheeteditor/main/resources/less/rightmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/rightmenu.less @@ -1,7 +1,4 @@ -.settings-panel { -} - .right-panel .settings-panel { label.input-label{ vertical-align: baseline;