diff --git a/app/js/services.js b/app/js/services.js index d4072bb2..af5e7444 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -1454,7 +1454,7 @@ angular.module('myApp.services', []) MtpApiFileManager.downloadFile(doc.dc_id, inputFileLocation, doc.size).then(function (url) { delete historyDoc.progress; - var a = $('Download').css({position: 'absolute'}).attr('href', url).attr('target', '_blank').attr('download', doc.file_name).appendTo('body'); + var a = $('Download').css({position: 'absolute', top: 1, left: 1}).attr('href', url).attr('target', '_blank').attr('download', doc.file_name).appendTo('body'); a[0].dataset.downloadurl = ['png', doc.file_name, url].join(':'); a[0].click(); $timeout(function () {