diff --git a/apps/pdfeditor/main/app/controller/InsTab.js b/apps/pdfeditor/main/app/controller/InsTab.js index b21445d497..2d4a2a549b 100644 --- a/apps/pdfeditor/main/app/controller/InsTab.js +++ b/apps/pdfeditor/main/app/controller/InsTab.js @@ -423,9 +423,9 @@ define([ if(statusbarController.getZoom() != stateBeforeOpenDlg.zoom) { me.api.zoom(stateBeforeOpenDlg.zoom); } - if(Math.abs(currentScroll.x - stateBeforeOpenDlg.scroll.x) > 1 || - Math.abs(currentScroll.y - stateBeforeOpenDlg.scroll.y) > 1 - ) { + if (Math.abs(currentScroll.x - stateBeforeOpenDlg.scroll.x) > 1 || + Math.abs(currentScroll.y - stateBeforeOpenDlg.scroll.y) > 1) + { me.api.scrollToXY(stateBeforeOpenDlg.scroll.x, stateBeforeOpenDlg.scroll.y); }