From 6a71c3de649cae7fdaf67e685317403855ec161a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 29 Jan 2008 05:56:53 +0000 Subject: [PATCH] Fix [ 1881605 ] Bad distribution of some windows --- serverApps/src/main/servlet/org/compiere/www/WebField.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/serverApps/src/main/servlet/org/compiere/www/WebField.java b/serverApps/src/main/servlet/org/compiere/www/WebField.java index 196fea50fd..3dc36f943c 100644 --- a/serverApps/src/main/servlet/org/compiere/www/WebField.java +++ b/serverApps/src/main/servlet/org/compiere/www/WebField.java @@ -74,8 +74,10 @@ public class WebField m_recordID = AD_Record_ID; m_fieldLength = fieldLength; m_displayLength = displayLength; - if (m_displayLength == 0) - m_displayLength = 20; // default length + if (m_displayLength <= 22) + m_displayLength = 22; // default length + else + m_displayLength = 44; // default length m_longField = longField; // m_readOnly = readOnly;