From dceebebb1d9a0cb1a14c97238d53ebfee507de8d Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 8 Sep 2009 09:24:42 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2854170&group_id=176962&atid=955896 - for multi line text field, the grid mode editor always trigger on change event and mark record as dirty even though user have not make any changes. --- .../adempiere/webui/editor/WStringEditor.java | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java b/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java index 57c04b4df4..f20a788d22 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WStringEditor.java @@ -120,23 +120,20 @@ public class WStringEditor extends WEditor implements ContextMenuListener } getComponent().setCols(displayLength); - if (!tableEditor) + if (gridField.getDisplayType() == DisplayType.Text) { - if (gridField.getDisplayType() == DisplayType.Text) - { - getComponent().setMultiline(true); - getComponent().setRows(3); - } - else if (gridField.getDisplayType() == DisplayType.TextLong) - { - getComponent().setMultiline(true); - getComponent().setRows(5); - } - else if (gridField.getDisplayType() == DisplayType.Memo) - { - getComponent().setMultiline(true); - getComponent().setRows(8); - } + getComponent().setMultiline(true); + getComponent().setRows(3); + } + else if (gridField.getDisplayType() == DisplayType.TextLong) + { + getComponent().setMultiline(true); + getComponent().setRows(5); + } + else if (gridField.getDisplayType() == DisplayType.Memo) + { + getComponent().setMultiline(true); + getComponent().setRows(8); } if (getComponent() instanceof Textbox)