From 31122597e8a3998fdd33d7fa418eec7403ff5c49 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 11 Feb 2015 22:19:10 +0300 Subject: [PATCH] Fixed custom sticker display Fixed stickers on mobile --- app/js/services.js | 8 +++++++- app/partials/mobile/message_attach_document.html | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index 744040f3..c3d66bbb 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -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; diff --git a/app/partials/mobile/message_attach_document.html b/app/partials/mobile/message_attach_document.html index ff4e9525..d994fb41 100644 --- a/app/partials/mobile/message_attach_document.html +++ b/app/partials/mobile/message_attach_document.html @@ -5,8 +5,8 @@