1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

Merge pull request #1083 from matrix-org/t3chguy/width_height_int

width and height must be int otherwise synapse cries
This commit is contained in:
David Baker
2017-06-13 13:23:12 +01:00
committed by GitHub

View File

@@ -62,8 +62,8 @@ module.exports = React.createClass({
var url = ContentRepo.getHttpUriForMxc( var url = ContentRepo.getHttpUriForMxc(
MatrixClientPeg.get().getHomeserverUrl(), MatrixClientPeg.get().getHomeserverUrl(),
ev.getContent().url, ev.getContent().url,
14 * window.devicePixelRatio, Math.ceil(14 * window.devicePixelRatio),
14 * window.devicePixelRatio, Math.ceil(14 * window.devicePixelRatio),
'crop' 'crop'
); );