[DE] Fix list preview

This commit is contained in:
Julia Radzhabova 2021-05-05 19:03:08 +03:00
parent 5582176247
commit 5434d86eaa

View file

@ -336,6 +336,8 @@ define([
});
this.levelsList.on('item:select', _.bind(this.onSelectLevel, this));
this.on('animate:after', _.bind(this.onAnimateAfter, this));
this.afterRender();
},
@ -347,6 +349,12 @@ define([
return this.type > 0 ? this.cmbFormat : this.cmbAlign;
},
onAnimateAfter: function() {
if (this.api) {
this.api.SetDrawImagePreviewBullet('bulleted-list-preview', this.props, this.level, this.type==2);
}
},
afterRender: function() {
this.updateThemeColors();
this._setDefaults(this.props);
@ -552,9 +560,6 @@ define([
} else
this.cmbFormat.setValue((format!==undefined) ? format : '');
}
if (this.api) {
this.api.SetDrawImagePreviewBullet('bulleted-list-preview', this.props, this.level, this.type==2);
}
},
txtTitle: 'List Settings',