]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix occasionally misplaced error indicators in Buttons (#13723)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Thu, 8 May 2014 08:28:39 +0000 (11:28 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 8 May 2014 09:52:38 +0000 (09:52 +0000)
Change-Id: Id34a8463ff40b1351d4d8b171e561a21fc76d747

client/src/com/vaadin/client/ui/button/ButtonConnector.java

index eb5a3476f669f6382e61b28981a3dc11dd347116..4220c3f5d1134c68ce965ec5c7edb20eceebf539 100644 (file)
@@ -66,8 +66,7 @@ public class ButtonConnector extends AbstractComponentConnector implements
                 getWidget().errorIndicatorElement
                         .setClassName("v-errorindicator");
             }
-            getWidget().wrapper.insertBefore(getWidget().errorIndicatorElement,
-                    getWidget().captionElement);
+            getWidget().wrapper.insertFirst(getWidget().errorIndicatorElement);
 
         } else if (getWidget().errorIndicatorElement != null) {
             getWidget().wrapper.removeChild(getWidget().errorIndicatorElement);