Pman.Dialog.CoreEmail.bjs
[Pman.Core] / Pman.Dialog.CoreEmail.js
index 679bdf1..ba5e6dd 100644 (file)
@@ -1222,7 +1222,7 @@ Pman.Dialog.CoreEmail = {
              
              if(width > 50){
                  width = 50;
-                 height = Math.round(height * width / 50);
+                 height = Math.round(height * 50 / width);
              }
              
             return '<img src="' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '" width="' + width + '" height="' + height + '" />';