IDEMPIERE-5156 Editing a multi-line field in grid destroys the new line separator (#1155)
This commit is contained in:
parent
824e1bb2da
commit
68db1fd3b7
|
@ -189,7 +189,7 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
|
|||
* @param comp
|
||||
* @param gridField
|
||||
* @param rowIndex
|
||||
* @param tableEditor
|
||||
* @param tableEditor editor for Grid
|
||||
* @param editorConfiguration
|
||||
*/
|
||||
public WEditor(Component comp, GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration)
|
||||
|
|
|
@ -146,9 +146,7 @@ public class WStringEditor extends WEditor implements ContextMenuListener
|
|||
}
|
||||
if (!tableEditor)
|
||||
getComponent().setCols(displayLength);
|
||||
if (tableEditor)
|
||||
getComponent().setMultiline(false);
|
||||
else if (gridField.getDisplayType() == DisplayType.Text)
|
||||
if (gridField.getDisplayType() == DisplayType.Text)
|
||||
{
|
||||
getComponent().setMultiline(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue