mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Fix enourmous video bug
This commit is contained in:
parent
2190dcbe1e
commit
d6df3682f2
@ -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
Block a user