projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1a791f6
)
jslint
author
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 14:11:10 +0000
(16:11 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 10 Oct 2014 14:11:10 +0000
(16:11 +0200)
skins/photo_film_viewer.js
patch
|
blob
|
history
diff --git
a/skins/photo_film_viewer.js
b/skins/photo_film_viewer.js
index
c6f583b
..
fa929b2
100644
(file)
--- 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;