From e966695da91713b44e2a48bbcf37b76abbf91968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Fri, 26 Nov 2010 16:41:54 +0100 Subject: [PATCH 1/1] bugfix : ancrage du film toujours en bas. --- skins/photo_film_viewer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index 70fef4e..7adfe9c 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -122,9 +122,10 @@ FilmSlider.prototype.fitToScreen = function(evt) { FilmSlider.prototype._fitToScreen = function(evt) { var wh = getWindowHeight(); - var ch = document.body.clientHeight; + var rb = getObjectTop(this.rail) + getObjectHeight(this.rail); // rail bottom + var delta = wh - rb var sh = getObjectHeight(this.stretchable); - var newSize = sh + wh - ch; + var newSize = sh + delta; this.stretchable.style.height = newSize + 'px'; var ratio = this.image.height / this.image.width; -- 2.20.1