[SSE] Print preview: add resize

This commit is contained in:
JuliaSvinareva 2021-11-25 19:41:19 +03:00
parent b0a69a7f1d
commit 20e9ad355a

View file

@ -99,6 +99,12 @@ define([
this.fillComponents(this.printSettings);
this.registerControlEvents(this.printSettings);
Common.NotificationCenter.on('window:resize', _.bind(function () {
if (this._isPreviewVisible) {
this.api.asc_drawPrintPreview(this._navigationPreview.currentPage);
}
}, this));
},
setApi: function(o) {