mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 15:06:10 +08:00
[DE] Bug in ComboBoxFonts when recent: 0 (in the DropCapSettings dialog).
This commit is contained in:
@ -383,12 +383,11 @@ define([
|
||||
}
|
||||
$(this.el).find('ul').scrollTop(0);
|
||||
this.trigger('show:after', this, e);
|
||||
this.flushVisibleFontsTiles();
|
||||
this.updateVisibleFontsTiles(null, 0);
|
||||
} else {
|
||||
Common.UI.ComboBox.prototype.onAfterShowMenu.apply(this, arguments);
|
||||
}
|
||||
|
||||
this.flushVisibleFontsTiles();
|
||||
this.updateVisibleFontsTiles(null, 0);
|
||||
},
|
||||
|
||||
onAfterHideMenu: function(e) {
|
||||
@ -399,6 +398,8 @@ define([
|
||||
},
|
||||
|
||||
addItemToRecent: function(record) {
|
||||
if (this.recent<1) return;
|
||||
|
||||
if (record.get('type') != FONT_TYPE_RECENT &&
|
||||
!this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT})) {
|
||||
var fonts = this.store.where({type:FONT_TYPE_RECENT});
|
||||
|
||||
Reference in New Issue
Block a user