diff --git a/shared/index.js b/shared/index.js
index cacd31983978eeb0a66aa14a4982c8c88a379df1..ab1f9150292575077097555625c6026f1de5e569 100644
--- a/shared/index.js
+++ b/shared/index.js
@@ -967,9 +967,10 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
elem.style.height = PAGE_HEIGHT+'px';
});
-
- var pageheight100 = pdfPage.getViewport(1, 0).height;
- $('#body-wrapper').css('height',pageheight100+40);
+ if (! $('.path-mod-pdfannotator').first().hasClass('fullscreenWrapper')) {
+ var pageheight100 = pdfPage.getViewport(1, 0).height;
+ $('#body-wrapper').css('height',pageheight100+40);
+ }
document.getElementById('currentPage').value = _page;
document.getElementById('currentPage').max = NUM_PAGES;
document.getElementById('sumPages').innerHTML = NUM_PAGES;