From: Vincent Vanwaelscappel Date: Fri, 14 Sep 2018 17:44:41 +0000 (+0200) Subject: done #2244 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b36a135c2494bf9658f36b1ab28115081dac655b;p=fluidbook-html5.git done #2244 @1.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 5ca6acd4..854cf36e 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -419,5 +419,4 @@ FluidbookLinks.prototype = { .css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'}); }); }, - } diff --git a/js/libs/fluidbook/fluidbook.resize.js b/js/libs/fluidbook/fluidbook.resize.js index 8fcf0f14..5364c434 100644 --- a/js/libs/fluidbook/fluidbook.resize.js +++ b/js/libs/fluidbook/fluidbook.resize.js @@ -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(); }