From: Benoît Pin Date: Fri, 26 Nov 2010 21:08:07 +0000 (+0100) Subject: On affiche toujours le rail de défilement pour pouvoir, à coup sûr obtenir la position. X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/commitdiff_plain/32e16df63fbc2df3a847347d4f58734f471bcd87?ds=inline;hp=--cc On affiche toujours le rail de défilement pour pouvoir, à coup sûr obtenir la position. --- 32e16df63fbc2df3a847347d4f58734f471bcd87 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(),