From e371001c7bf60c424081ef8b047b6031e2ca3781 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 18 Jun 2013 22:59:01 +0300 Subject: Ensure caption is used when child is set to required (#12077) Change-Id: Id4a9674c1b2e1c41dbba1f6fde11502400591a52 --- client/src/com/vaadin/client/VCaption.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client') diff --git a/client/src/com/vaadin/client/VCaption.java b/client/src/com/vaadin/client/VCaption.java index d033c2b4fe..d0338de4a1 100644 --- a/client/src/com/vaadin/client/VCaption.java +++ b/client/src/com/vaadin/client/VCaption.java @@ -437,6 +437,12 @@ public class VCaption extends HTML { return true; } + if (state instanceof AbstractFieldState) { + if (((AbstractFieldState) state).required) { + return true; + } + } + return false; } -- cgit v1.2.3