From 937d838bdc94199ba0435fec392d04cfae22b9bd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 5 Jun 2012 20:19:52 +0530 Subject: [PATCH] min height for communication history and transaction history --- erpnext/setup/doctype/contact_control/contact_control.js | 3 +++ erpnext/support/doctype/communication/communication.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/erpnext/setup/doctype/contact_control/contact_control.js b/erpnext/setup/doctype/contact_control/contact_control.js index bb505f6481..1d17244443 100755 --- a/erpnext/setup/doctype/contact_control/contact_control.js +++ b/erpnext/setup/doctype/contact_control/contact_control.js @@ -7,6 +7,9 @@ cur_frm.cscript.make_hl_body = function(){ cur_frm.fields_dict['history_html'].wrapper.innerHTML = ''; cur_frm.history_html = $a(cur_frm.fields_dict['history_html'].wrapper,'div'); + $(cur_frm.history_html).css({ + 'min-height': '320px', + }); } // make history diff --git a/erpnext/support/doctype/communication/communication.js b/erpnext/support/doctype/communication/communication.js index 1a241bff2e..afa853ddbf 100644 --- a/erpnext/support/doctype/communication/communication.js +++ b/erpnext/support/doctype/communication/communication.js @@ -16,6 +16,9 @@ cur_frm.cscript.make_communication_body = function() { var communication_wrapper = cur_frm.fields_dict.communication_html.wrapper; communication_wrapper.innerHTML = ''; cur_frm.communication_html = $a(communication_wrapper, 'div'); + $(cur_frm.communication_html).css({ + 'min-height': '275px', + }); } cur_frm.cscript.render_communication_list = function(doc, dt, dn) {