]> _ Git - fluidbook-html5.git/commitdiff
wip #2441 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Jan 2019 17:48:47 +0000 (18:48 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Jan 2019 17:48:47 +0000 (18:48 +0100)
js/libs/fluidbook/fluidbook.resize.js

index 5bfac0181f38a61d8ae7b8034cb9d4c4d703415e..150bd5095a44dd84e6904bea17c3332d032258e6 100644 (file)
@@ -71,7 +71,7 @@ FluidbookResize.prototype = {
         }
 
         if (this.fluidbook.support.IE > 9) {
-           this.watchForResize();
+            this.watchForResize();
         }
     },
 
@@ -84,8 +84,8 @@ FluidbookResize.prototype = {
             resize();
         }
 
-        var $this=this;
-        window.setTimeout(function(){
+        var $this = this;
+        window.setTimeout(function () {
             $this.watchForResize();
         }, 1000);
     },
@@ -287,7 +287,9 @@ FluidbookResize.prototype = {
             hh: this.hh,
             orientation: this.orientation,
             bookScale: this.bookScale,
-            fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect()
+            fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect(),
+            arrowLeftRect: $("#previous").get(0).getBoundingClientRect(),
+            arrowRightRect: $("#next").get(0).getBoundingClientRect(),
         });
     },
     resizeNav: function (interfaceScale) {