Browse Source

Fixed custom sticker display

Fixed stickers on mobile
master
Igor Zhukov 10 years ago
parent
commit
31122597e8
  1. 8
      app/js/services.js
  2. 4
      app/partials/mobile/message_attach_document.html

8
app/js/services.js

@ -2853,7 +2853,13 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
thumb.height = dim.h; thumb.height = dim.h;
thumb.location = thumbPhotoSize.location; thumb.location = thumbPhotoSize.location;
thumb.size = thumbPhotoSize.size; 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; thumb = false;
} }
doc.thumb = thumb; doc.thumb = thumb;

4
app/partials/mobile/message_attach_document.html

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

Loading…
Cancel
Save