Pman.Dialog.CoreEmail.bjs
authoredward <edward@roojs.com>
Tue, 10 Nov 2015 06:44:37 +0000 (14:44 +0800)
committeredward <edward@roojs.com>
Tue, 10 Nov 2015 06:44:37 +0000 (14:44 +0800)
Pman.Dialog.CoreEmail.js

Pman.Dialog.CoreEmail.bjs
Pman.Dialog.CoreEmail.js

index ff250de..c31b720 100644 (file)
          "xtype" : "ColumnModel",
          "header" : "Filename",
          "width" : 300,
-         "$ renderer" : "function(v,x,r)\n{\n    var width = r.data.width;\n    var height = r.data.height;\n    \n    if(width > 50){\n        width = 50;\n        height = Math.round(height * 50 / width);\n    }\n    \n   return '<img src=\"' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '\" width=\"' + width + '\" height=\"' + height + '\" />';\n}",
+         "$ renderer" : "function(v,x,r)\n{\n    var width = r.data.width;\n    var height = r.data.height;\n    \n    if(width > 50){\n        width = 50;\n        height = Math.round(height * 50 / width);\n    }\n    Roo.log([width, height]);\n   return '<img src=\"' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '\" width=\"' + width + '\" height=\"' + height + '\" />';\n}",
          "$ xns" : "Roo.grid",
          "* prop" : "colModel[]",
          "dataIndex" : "filename"
index ba5e6dd..1f487c5 100644 (file)
@@ -1224,7 +1224,7 @@ Pman.Dialog.CoreEmail = {
                  width = 50;
                  height = Math.round(height * 50 / width);
              }
-             
+             Roo.log([width, height]);
             return '<img src="' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '" width="' + width + '" height="' + height + '" />';
          },
          width : 300,