mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 22:26:40 +08:00
[SSE] Fix scroll in print preview on resize
This commit is contained in:
@ -96,6 +96,7 @@ define([
|
||||
this.notUpdateSheetSettings = true;
|
||||
this.updatePrintRenderContainerSize();
|
||||
this.api.asc_drawPrintPreview(undefined, record.value);
|
||||
this.printSettings.printScroller && this.printSettings.printScroller.update();
|
||||
}
|
||||
}, this));
|
||||
this.printSettings.btnsSave.forEach(function (btn) {
|
||||
@ -128,6 +129,7 @@ define([
|
||||
this.notUpdateSheetSettings = true;
|
||||
this.updatePrintRenderContainerSize();
|
||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPage);
|
||||
this.printSettings.printScroller && this.printSettings.printScroller.update();
|
||||
}
|
||||
}, this));
|
||||
Common.NotificationCenter.on('margins:update', _.bind(this.onUpdateLastCustomMargins, this));
|
||||
@ -853,6 +855,7 @@ define([
|
||||
|
||||
if (rerender) {
|
||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPage);
|
||||
this.printSettings.printScroller && this.printSettings.printScroller.update();
|
||||
}
|
||||
},
|
||||
|
||||
@ -945,7 +948,7 @@ define([
|
||||
this.notUpdateSheetSettings = !needUpdate;
|
||||
this.updatePrintRenderContainerSize();
|
||||
this.api.asc_drawPrintPreview(newPage);
|
||||
|
||||
this.printSettings.printScroller && this.printSettings.printScroller.update();
|
||||
this.updateNavigationButtons(newPage, pageCount);
|
||||
}
|
||||
},
|
||||
@ -1002,6 +1005,7 @@ define([
|
||||
this.notUpdateSheetSettings = true;
|
||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPage);
|
||||
this.updateNavigationButtons(this._navigationPreview.currentPage, this._navigationPreview.pageCount);
|
||||
this.printSettings.printScroller && this.printSettings.printScroller.update();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user