Properly maintain aspect ratio of inline images (#7503)
This commit is contained in:
parent
5cfb046816
commit
3c1ce77d48
3 changed files with 28 additions and 8 deletions
|
@ -264,7 +264,8 @@ describe('GroupView', function() {
|
|||
|
||||
const imgSrc = "https://my.home.server/_matrix/media/r0/thumbnail/someimageurl" +
|
||||
"?width=800&height=600&method=scale";
|
||||
expect(longDescElement.innerHTML).toContain('<img src="' + imgSrc + '">');
|
||||
expect(longDescElement.innerHTML).toContain('<img src="' + imgSrc + '" ' +
|
||||
'style="max-width:800px;max-height:600px">');
|
||||
});
|
||||
|
||||
httpBackend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue