From c231da81bdff09dbc364edfe8096fd4db7e27f84 Mon Sep 17 00:00:00 2001 From: edward Date: Tue, 10 Nov 2015 14:47:25 +0800 Subject: [PATCH] Pman.Dialog.CoreEmail.bjs Pman.Dialog.CoreEmail.js --- Pman.Dialog.CoreEmail.bjs | 2 +- Pman.Dialog.CoreEmail.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs index 0eefe51c..d28a4c00 100644 --- a/Pman.Dialog.CoreEmail.bjs +++ b/Pman.Dialog.CoreEmail.bjs @@ -554,7 +554,7 @@ "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 Roo.log((height));\n return '';\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 Roo.log(height);\n Roo.log(50 / width);\n Roo.log(height * 50 / width);\n height = Math.round(height * 50 / width);\n }\n \n return '';\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "filename" diff --git a/Pman.Dialog.CoreEmail.js b/Pman.Dialog.CoreEmail.js index 00495783..29dbf428 100644 --- a/Pman.Dialog.CoreEmail.js +++ b/Pman.Dialog.CoreEmail.js @@ -1222,9 +1222,12 @@ Pman.Dialog.CoreEmail = { if(width > 50){ width = 50; + Roo.log(height); + Roo.log(50 / width); + Roo.log(height * 50 / width); height = Math.round(height * 50 / width); } - Roo.log((height)); + return ''; }, width : 300, -- 2.39.2