From 32e16df63fbc2df3a847347d4f58734f471bcd87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Fri, 26 Nov 2010 22:08:07 +0100 Subject: [PATCH] =?utf8?q?On=20affiche=20toujours=20le=20rail=20de=20d?= =?utf8?q?=C3=A9filement=20pour=20pouvoir,=20=C3=A0=20coup=20s=C3=BBr=20ob?= =?utf8?q?tenir=20la=20position.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/photo_film_viewer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index 7adfe9c..4c21355 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -92,15 +92,15 @@ FilmSlider.prototype.resizeSlider = function(evt) { var filmWidth = this.slideSize * this.filmLength; var sliderRatio = this.sliderRatio = filmBarWidth / filmWidth; var sliderWidth = filmBarWidth * sliderRatio; + this.rail.style.width = filmBarWidth + 'px'; + this.rail.style.display = 'block'; + this.rail.style.visibility = 'visible'; if (sliderRatio < 1) { - this.rail.style.width = filmBarWidth + 'px'; this.slider.style.width = Math.round(sliderWidth) + 'px'; - this.rail.style.display = 'block'; - this.rail.style.visibility = 'visible'; + this.slider.style.visibility = 'visible'; } else { - this.rail.style.display = 'none'; - this.rail.style.visibility = 'hidden'; + this.slider.style.visibility = 'hidden'; } this.winSize = {'width' : getWindowWidth(), -- 2.20.1