From eb2a46af09921a8699c9f9c67539418feceac563 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Tue, 1 Dec 2009 09:17:21 +0000 Subject: VForm theme modified, fieldset now doesn't have a border if there is no caption for the form. svn changeset:10116/svn branch:6.2 --- src/com/vaadin/terminal/gwt/client/ui/VForm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/vaadin/terminal/gwt/client/ui/VForm.java b/src/com/vaadin/terminal/gwt/client/ui/VForm.java index 7117d2cebf..01e6caae0d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VForm.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VForm.java @@ -100,9 +100,9 @@ public class VForm extends ComplexPanel implements Container { } } if (legendEmpty) { - DOM.setStyleAttribute(legend, "display", "none"); + addStyleDependentName("nocaption"); } else { - DOM.setStyleAttribute(legend, "display", ""); + removeStyleDependentName("nocaption"); } if (uidl.hasAttribute("error")) { -- cgit v1.2.3