From 9499a2b6fdcf56167d772ccc3792a2ff9b7fa2ac Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 26 Sep 2019 17:39:42 +0300 Subject: [PATCH] [SSE] Fix Bug 42862 --- apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js b/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js index bca9495d4..8ebc20bb3 100644 --- a/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js @@ -76,7 +76,7 @@ define([ subscript: undefined, superscript: undefined, fontsize: undefined, - fontname: 'Arial' + fontname: '' }; this.template = [ @@ -342,6 +342,7 @@ define([ hint : this.tipFontName })); this.cmbFonts[0].on('selected', _.bind(this.onFontSelect, this)); + this.cmbFonts[0].setValue(this._state.fontname); this.headerControls.push(this.cmbFonts[0]); this.cmbFonts.push(new Common.UI.ComboBoxFonts({ @@ -355,6 +356,7 @@ define([ hint : this.tipFontName })); this.cmbFonts[1].on('selected', _.bind(this.onFontSelect, this)); + this.cmbFonts[1].setValue(this._state.fontname); this.footerControls.push(this.cmbFonts[1]); Common.NotificationCenter.on('fonts:change', _.bind(this.onApiChangeFont, this)); @@ -647,9 +649,7 @@ define([ this.api.asc_registerCallback('asc_updateEditorCursorPosition', this.wrapEvents.onUpdateEditorCursorPosition); this.cmbFonts[0].fillFonts(this.fontStore); - this.cmbFonts[0].selectRecord(this.fontStore.findWhere({name: this._state.fontname}) || this.fontStore.at(0)); this.cmbFonts[1].fillFonts(this.fontStore); - this.cmbFonts[1].selectRecord(this.fontStore.findWhere({name: this._state.fontname}) || this.fontStore.at(0)); this.updateThemeColors(); this.HFObject = new AscCommonExcel.CHeaderFooterEditor(['header-left-img', 'header-center-img', 'header-right-img', 'footer-left-img', 'footer-center-img', 'footer-right-img'], 205);