Align label to the middle
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 24 Nov 2016 13:26:42 +0000 (14:26 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 24 Nov 2016 13:27:47 +0000 (14:27 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java

index a0da22b1c4cfdd7c260546deb15844f6a4b2dca6..d9f351b191fc050808c552275c543c11582c8f87 100644 (file)
@@ -125,9 +125,11 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements Modi
             addControl(label);
             if(isMultiLine){
                 label.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
+                ((TableWrapData)label.getLayoutData()).valign = TableWrapData.MIDDLE;
             }
             else{
                 label.setLayoutData(LayoutConstants.LEFT());
+                ((TableWrapData)label.getLayoutData()).valign = TableWrapData.MIDDLE;
             }
         }
     }
@@ -138,7 +140,7 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements Modi
      * @return a {@link java.lang.String} object.
      */
     public String getText() {
-       
+
       return CdmUtils.Nb(text.getText());
     }