From 20e9ad355ad3f926b9d60cefc1d0b29d1cb8432b Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 25 Nov 2021 19:41:19 +0300 Subject: [PATCH] [SSE] Print preview: add resize --- apps/spreadsheeteditor/main/app/controller/Print.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 3b7184e14..b83a6e185 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -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) {