You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Fix enourmous video bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user