From 320341dca66e5887ba1da118138693fc161074a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 15 Jul 2014 11:23:50 +0200 Subject: [PATCH 1/1] Calcul de la retaille prenant en compte l'absence de barre de scroll horizontal --- skins/photo_film_viewer.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.20.1