mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 19:01:55 +02:00
Merge pull request #355 from matrix-org/dbkr/fix_massive_video
Fix enourmous video bug
This commit is contained in:
commit
3efd805243
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user