From 91f2bb4f788b2a1be01fa0f6a2e5dd2c62448c5c Mon Sep 17 00:00:00 2001 From: edward Date: Tue, 10 Nov 2015 14:48:10 +0800 Subject: [PATCH] Pman.Dialog.CoreEmail.bjs Pman.Dialog.CoreEmail.js --- Pman.Dialog.CoreEmail.bjs | 2 +- Pman.Dialog.CoreEmail.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Pman.Dialog.CoreEmail.bjs b/Pman.Dialog.CoreEmail.bjs index d28a4c00..311f6255 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 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}", + "$ renderer" : "function(v,x,r)\n{\n var width = r.data.width;\n var height = r.data.height;\n \n if(width > 50){\n height = Math.round(height * 50 / width);\n width = 50;\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 29dbf428..8e7bdcd9 100644 --- a/Pman.Dialog.CoreEmail.js +++ b/Pman.Dialog.CoreEmail.js @@ -1221,11 +1221,8 @@ Pman.Dialog.CoreEmail = { var height = r.data.height; if(width > 50){ - width = 50; - Roo.log(height); - Roo.log(50 / width); - Roo.log(height * 50 / width); height = Math.round(height * 50 / width); + width = 50; } return ''; -- 2.39.2