Reset width before decription

This commit is contained in:
Tankred Hase 2015-05-09 11:53:33 +02:00
parent e5e1c118be
commit 4cf1ef3107
1 changed files with 2 additions and 2 deletions

View File

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