]> _ Git - fluidbook-html5.git/commitdiff
done #2244 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 14 Sep 2018 17:44:41 +0000 (19:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 14 Sep 2018 17:44:41 +0000 (19:44 +0200)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/fluidbook.resize.js

index 5ca6acd4429d3f3641b1d0b0b94e2e19f530a6e4..854cf36ec87f83b63d1fb69ec7ee80c1381bbe06 100644 (file)
@@ -419,5 +419,4 @@ FluidbookLinks.prototype = {
                 .css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'});
         });
     },
-
 }
index 8fcf0f14f7a27c470f32da1fb2024627f49ae5ce..5364c4347b4457387789b77cd0567d5ced3623da 100644 (file)
@@ -62,6 +62,13 @@ FluidbookResize.prototype = {
         $("#previous").transform({
             origin: [left, '50%']
         });
+
+        if (this.fluidbook.support.android || this.fluidbook.support.iOS) {
+            $(document).on('blur focus', 'input', function () {
+                setTimeout(resize, 1500);
+                setTimeout(resize, 3000);
+            });
+        }
     },
     resize: function (init) {
         if (init == undefined || init == null) {
@@ -233,8 +240,8 @@ FluidbookResize.prototype = {
         if (this.fluidbook.form) {
             try {
                 this.fluidbook.form.resize();
-            }catch (e) {
-                
+            } catch (e) {
+
             }
         }
 
@@ -257,7 +264,7 @@ FluidbookResize.prototype = {
             ww: this.ww,
             hh: this.hh,
             orientation: this.orientation,
-            bookScale:this.bookScale,
+            bookScale: this.bookScale,
             fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect()
         });
     },
@@ -395,12 +402,12 @@ FluidbookResize.prototype = {
         var marginTop = marginBottom = Math.min(Math.round(wh * 0.075), 50); // Relative margins with a max of 50
         var searchResultsMaxHeight = wh - formHeight - marginTop - marginBottom;
         var shareHeight = 0;
-        var sl=$('#shareLinks');
+        var sl = $('#shareLinks');
         if (sl.length > 0) {
             shareHeight = sl.outerHeight()
         }
         var menuSearchHeight = 0;
-        var ms=$('#menuSearch')
+        var ms = $('#menuSearch')
         if (ms.length > 0) {
             menuSearchHeight = ms.height();
         }