[SSE] Fix Bug 42862
This commit is contained in:
parent
8560476ce7
commit
9499a2b6fd
|
@ -76,7 +76,7 @@ define([
|
||||||
subscript: undefined,
|
subscript: undefined,
|
||||||
superscript: undefined,
|
superscript: undefined,
|
||||||
fontsize: undefined,
|
fontsize: undefined,
|
||||||
fontname: 'Arial'
|
fontname: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
this.template = [
|
this.template = [
|
||||||
|
@ -342,6 +342,7 @@ define([
|
||||||
hint : this.tipFontName
|
hint : this.tipFontName
|
||||||
}));
|
}));
|
||||||
this.cmbFonts[0].on('selected', _.bind(this.onFontSelect, this));
|
this.cmbFonts[0].on('selected', _.bind(this.onFontSelect, this));
|
||||||
|
this.cmbFonts[0].setValue(this._state.fontname);
|
||||||
this.headerControls.push(this.cmbFonts[0]);
|
this.headerControls.push(this.cmbFonts[0]);
|
||||||
|
|
||||||
this.cmbFonts.push(new Common.UI.ComboBoxFonts({
|
this.cmbFonts.push(new Common.UI.ComboBoxFonts({
|
||||||
|
@ -355,6 +356,7 @@ define([
|
||||||
hint : this.tipFontName
|
hint : this.tipFontName
|
||||||
}));
|
}));
|
||||||
this.cmbFonts[1].on('selected', _.bind(this.onFontSelect, this));
|
this.cmbFonts[1].on('selected', _.bind(this.onFontSelect, this));
|
||||||
|
this.cmbFonts[1].setValue(this._state.fontname);
|
||||||
this.footerControls.push(this.cmbFonts[1]);
|
this.footerControls.push(this.cmbFonts[1]);
|
||||||
Common.NotificationCenter.on('fonts:change', _.bind(this.onApiChangeFont, this));
|
Common.NotificationCenter.on('fonts:change', _.bind(this.onApiChangeFont, this));
|
||||||
|
|
||||||
|
@ -647,9 +649,7 @@ define([
|
||||||
this.api.asc_registerCallback('asc_updateEditorCursorPosition', this.wrapEvents.onUpdateEditorCursorPosition);
|
this.api.asc_registerCallback('asc_updateEditorCursorPosition', this.wrapEvents.onUpdateEditorCursorPosition);
|
||||||
|
|
||||||
this.cmbFonts[0].fillFonts(this.fontStore);
|
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].fillFonts(this.fontStore);
|
||||||
this.cmbFonts[1].selectRecord(this.fontStore.findWhere({name: this._state.fontname}) || this.fontStore.at(0));
|
|
||||||
this.updateThemeColors();
|
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);
|
this.HFObject = new AscCommonExcel.CHeaderFooterEditor(['header-left-img', 'header-center-img', 'header-right-img', 'footer-left-img', 'footer-center-img', 'footer-right-img'], 205);
|
||||||
|
|
Loading…
Reference in a new issue