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 comp
|
||||||
* @param gridField
|
* @param gridField
|
||||||
* @param rowIndex
|
* @param rowIndex
|
||||||
* @param tableEditor
|
* @param tableEditor editor for Grid
|
||||||
* @param editorConfiguration
|
* @param editorConfiguration
|
||||||
*/
|
*/
|
||||||
public WEditor(Component comp, GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration 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)
|
if (!tableEditor)
|
||||||
getComponent().setCols(displayLength);
|
getComponent().setCols(displayLength);
|
||||||
if (tableEditor)
|
if (gridField.getDisplayType() == DisplayType.Text)
|
||||||
getComponent().setMultiline(false);
|
|
||||||
else if (gridField.getDisplayType() == DisplayType.Text)
|
|
||||||
{
|
{
|
||||||
getComponent().setMultiline(true);
|
getComponent().setMultiline(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue