Files
blap/src
Luke Barnard 2d14d51ecb Handle images without width/height info correctly
Prior to #1912, height fix up of image events without an `info` in their
content would fail, setting `style.height = null + "px"`.

Now that all thumbnail sizing is done through one path, we can fix the
same problem for all cases (images, stickers, e2e/non-e2e) by handling
images without `info` correctly.

At the bare minimum, we use a null-guard that will make sure an image
without an `info` does not appear in the timeline (as a spinner or
otherwise until loaded). When loaded, we size it like any other image
by using the natural dimensions of the loaded image in place of `info`.

Note that we do not apply the same logic to images that *do* specify an
`info` with `w` and `h` keys. If the aspect ratio of the image does not
match that of the event, we use the one in `info` even when the image
has loaded.
2018-06-14 15:44:55 +01:00
..
2018-04-20 14:06:09 +01:00
2017-11-16 13:19:36 +00:00
2018-03-29 16:24:03 +01:00
2018-01-11 10:27:15 +00:00
2018-02-08 18:09:04 +02:00
2017-12-13 10:17:38 +00:00
2017-11-07 11:27:42 +00:00
2018-04-27 17:49:53 +01:00
2017-12-10 12:50:41 +00:00
2017-11-09 16:09:12 +00:00
2017-11-16 13:19:36 +00:00
2018-02-06 17:50:53 +00:00
2018-01-05 14:53:04 +00:00
2018-02-25 23:00:46 +00:00
2018-05-15 17:34:02 +01:00
2018-02-28 00:49:14 +00:00
2018-04-11 18:31:54 +01:00