From 78981f194199550211f031aef65a1a1211628665 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 8 May 2014 11:28:39 +0300 Subject: [PATCH] Fix occasionally misplaced error indicators in Buttons (#13723) Change-Id: Id34a8463ff40b1351d4d8b171e561a21fc76d747 --- client/src/com/vaadin/client/ui/button/ButtonConnector.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.5