Fix enourmous video bug

This commit is contained in:
David Baker 2016-07-20 11:58:49 +01:00
parent 2190dcbe1e
commit d6df3682f2

View file

@ -34,7 +34,7 @@ module.exports = React.createClass({
} }
if (fullWidth < thumbWidth && fullHeight < thumbHeight) { if (fullWidth < thumbWidth && fullHeight < thumbHeight) {
// no scaling needs to be applied // no scaling needs to be applied
return fullHeight; return 1;
} }
var widthMulti = thumbWidth / fullWidth; var widthMulti = thumbWidth / fullWidth;
var heightMulti = thumbHeight / fullHeight; var heightMulti = thumbHeight / fullHeight;