diff --git a/src/js/directive/read.js b/src/js/directive/read.js index 8c59cc5..df16597 100644 --- a/src/js/directive/read.js +++ b/src/js/directive/read.js @@ -96,8 +96,6 @@ ngModule.directive('frameLoad', function($window) { return; } - resetWidth(); - if (mail.encrypted && !mail.decrypted) { // decrypt current mail scope.decrypt(mail).then(function() { @@ -109,6 +107,8 @@ ngModule.directive('frameLoad', function($window) { return; } + resetWidth(); + if (mail.html) { // if there are image tags in the html? var hasImages = /]+\bsrc=['"][^'">]+['"]/ig.test(mail.html);