Merge pull request #355 from matrix-org/dbkr/fix_massive_video
Fix enourmous video bugpull/21833/head
commit
3efd805243
|
@ -34,7 +34,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
if (fullWidth < thumbWidth && fullHeight < thumbHeight) {
|
||||
// no scaling needs to be applied
|
||||
return fullHeight;
|
||||
return 1;
|
||||
}
|
||||
var widthMulti = thumbWidth / fullWidth;
|
||||
var heightMulti = thumbHeight / fullHeight;
|
||||
|
|
Loading…
Reference in New Issue