Fixes #2423
authorn.hoffmann <n.hoffmann@localhost>
Mon, 30 May 2011 11:01:42 +0000 (11:01 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 30 May 2011 11:01:42 +0000 (11:01 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/TextWithLabelElement.java

index b68dfc53e5a4a9642131f32b36554aa38a3c89a0..ed4160c5ad6b791f451b2a71f455c554e292d35e 100644 (file)
@@ -71,8 +71,15 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements
 
                int scrollStyle = textHeight == null ? SWT.NULL
                                : (SWT.V_SCROLL | SWT.MULTI);
-               text = formFactory.createText(getLayoutComposite(), "", SWT.BORDER
-                               | SWT.WRAP | scrollStyle | style);
+               
+               int combinedStyle = style | SWT.BORDER | scrollStyle;
+               
+               //SWT.PASSWORD does not work when SWT.WRAP is set. 
+               if(style != SWT.PASSWORD){
+                       combinedStyle = combinedStyle | SWT.WRAP;
+               }               
+               
+               text = formFactory.createText(getLayoutComposite(), "", combinedStyle);
 
                addControl(text);