Merge pull request #355 from matrix-org/dbkr/fix_massive_video

Fix enourmous video bug
pull/21833/head
Richard van der Hoff 2016-07-20 13:42:03 +01:00 committed by GitHub
commit 3efd805243
1 changed files with 1 additions and 1 deletions

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;