width and height must be int otherwise synapse cries
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
cb38ebed39
commit
ad7c835471
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue