From 90fb7df08aad784284cfc7c136c9ee303913a223 Mon Sep 17 00:00:00 2001
From: Friederike Schwager <schwager@cil.rwth-aachen.de>
Date: Tue, 20 Aug 2019 15:24:58 +0200
Subject: [PATCH] bugfix: zoom in fullscreen mode

---
 shared/index.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/shared/index.js b/shared/index.js
index cacd319..ab1f915 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;
-- 
GitLab