[DE] Select default font when opened sign dialog.

This commit is contained in:
Julia Radzhabova 2017-05-26 15:50:36 +03:00
parent 3feed7f7c5
commit 1cbc937e05

View file

@ -266,11 +266,9 @@ define([
if (this.signType == 'visible') {
this.cmbFonts.fillFonts(this.fontStore);
this.cmbFonts.selectRecord(this.fontStore.findWhere({name: this.font.name}) || this.fontStore.at(0));
this.signObject = new AscCommon.CSignatureDrawer('signature-preview-img', this.api, this.signSize.width, this.signSize.height);
var rec = this.fontStore.findWhere({name: this.font.name});
this.cmbFonts.setValue((rec) ? rec.get('name') : this.fontStore.at(0).get('name'));
}
},