Fixed download photo on mobile

Closes #506
This commit is contained in:
Igor Zhukov 2014-11-05 21:26:51 +03:00
parent 0a5a2e25f0
commit 3f8f80baf3

View File

@ -2323,8 +2323,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
ext = 'jpg', ext = 'jpg',
mimeType = 'image/jpeg', mimeType = 'image/jpeg',
fileName = 'photo' + photoID + '.' + ext, fileName = 'photo' + photoID + '.' + ext,
fullWidth = $(window).width() - 36, fullWidth = Math.max(screen.width || 0, $(window).width() - 36, 800),
fullHeight = $($window).height() - 150, fullHeight = Math.max(screen.height || 0, $($window).height() - 150, 800),
fullPhotoSize = choosePhotoSize(photo, fullWidth, fullHeight), fullPhotoSize = choosePhotoSize(photo, fullWidth, fullHeight),
inputFileLocation = { inputFileLocation = {
_: 'inputFileLocation', _: 'inputFileLocation',