Fixed custom sticker display

Fixed stickers on mobile
This commit is contained in:
Igor Zhukov 2015-02-11 22:19:10 +03:00
parent e874712bad
commit 31122597e8
2 changed files with 9 additions and 3 deletions

View File

@ -2853,7 +2853,13 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
thumb.height = dim.h;
thumb.location = thumbPhotoSize.location;
thumb.size = thumbPhotoSize.size;
} else {
}
else if (isSticker) {
var dim = calcImageInBox(doc.w, doc.h, width, height);
thumb.width = dim.w;
thumb.height = dim.h;
}
else {
thumb = false;
}
doc.thumb = thumb;

View File

@ -5,8 +5,8 @@
<div ng-switch-when="sticker">
<img
class="im_message_sticker"
my-load-thumb
thumb="document.thumb"
my-load-sticker
document="document"
/>
</div>