X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/ec68e561dc6dcad7517bae68ddd8aed2c8440394..bf33c9ca85d7668e07e0a98d7af0be131d665b31:/skins/photo_film_viewer.js?ds=inline diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index c6f583b..fa929b2 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -211,9 +211,9 @@ FilmSlider.prototype.getBestFitSize = function(ratio) { }; FilmSlider.prototype.adjustImage = function(img) { - var dispWidth = parseInt(this.stretchable.style.width); + var dispWidth = parseInt(this.stretchable.style.width, 10); var imgWidth = img.naturalWidth; - var dispHeight = parseInt(this.stretchable.style.height); + var dispHeight = parseInt(this.stretchable.style.height, 10); var imgHeight = img.naturalHeight; var ratio;