From: Benoît Pin Date: Tue, 15 Jul 2014 09:23:50 +0000 (+0200) Subject: Calcul de la retaille prenant en compte l'absence de barre de scroll horizontal X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/commitdiff_plain/320341dca66e5887ba1da118138693fc161074a0 Calcul de la retaille prenant en compte l'absence de barre de scroll horizontal --- diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index 9bbf5ef..ff8d61e 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -113,6 +113,7 @@ FilmSlider.prototype.resizeSlider = function(evt) { } else { + // pas de barre de scroll horizontal pour les tablettes FilmSlider.prototype.resizeSlider = function(evt) {}; } @@ -158,7 +159,12 @@ FilmSlider.prototype.fitToScreen = function(evt) { FilmSlider.prototype._fitToScreen = function(evt) { var wh = getWindowHeight(); + if (!browser.isMobile) { var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom + } + else { + var rb = getObjectTop(this.filmBar) + getObjectHeight(this.filmBar); // film bottom + } var delta = wh - rb; var sh = getObjectHeight(this.stretchable); var newSize = sh + delta;