From 27208593d6cd2a61c37ae20151eb07ccaff55e90 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 27 Feb 2008 07:33:26 +0000 Subject: [PATCH] [ 1902801 ] Text are field display as single row when inside collapsible --- client/src/org/compiere/grid/VPanel.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/client/src/org/compiere/grid/VPanel.java b/client/src/org/compiere/grid/VPanel.java index 717974175d..4b56994bbb 100644 --- a/client/src/org/compiere/grid/VPanel.java +++ b/client/src/org/compiere/grid/VPanel.java @@ -323,8 +323,28 @@ public final class VPanel extends CTabbedPane } else if (fieldGroupType.equals(X_AD_FieldGroup.FIELDGROUPTYPE_Collapse)) { + boolean textArea = false; CollapsiblePanel m_tab = (CollapsiblePanel) m_tablist.get(fieldGroup); + if (mField.getDisplayType() == DisplayType.Text + || mField.getDisplayType() == DisplayType.TextLong + || mField.getDisplayType() == DisplayType.Memo) + { + textArea = true; + } + if (textArea) + { + m_gbc.gridheight = 3; + m_gbc.weighty = 1; + m_gbc.fill = GridBagConstraints.BOTH; + } m_tab.getCollapsiblePane().getContentPane().add(field, m_gbc); + if (textArea) + { + m_gbc.gridheight = 1; + m_gbc.weighty = 0; + m_gbc.fill = GridBagConstraints.HORIZONTAL; + } + if (!mField.isLongField()) fields.get(m_gbc.gridx).add(field);