From: Teemu Suo-Anttila Date: Thu, 8 May 2014 08:28:39 +0000 (+0300) Subject: Fix occasionally misplaced error indicators in Buttons (#13723) X-Git-Tag: 7.2.0~8^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=78981f194199550211f031aef65a1a1211628665;p=vaadin-framework.git Fix occasionally misplaced error indicators in Buttons (#13723) Change-Id: Id34a8463ff40b1351d4d8b171e561a21fc76d747 --- diff --git a/client/src/com/vaadin/client/ui/button/ButtonConnector.java b/client/src/com/vaadin/client/ui/button/ButtonConnector.java index eb5a3476f6..4220c3f5d1 100644 --- a/client/src/com/vaadin/client/ui/button/ButtonConnector.java +++ b/client/src/com/vaadin/client/ui/button/ButtonConnector.java @@ -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);