diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-12-01 09:17:21 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-12-01 09:17:21 +0000 |
commit | eb2a46af09921a8699c9f9c67539418feceac563 (patch) | |
tree | d49f2e94133d35898ea25a6b0192a87b7bab35cf /src | |
parent | e75f93eb7fa14976a440298521ad1eb9bb608e04 (diff) | |
download | vaadin-framework-eb2a46af09921a8699c9f9c67539418feceac563.tar.gz vaadin-framework-eb2a46af09921a8699c9f9c67539418feceac563.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VForm.java | 4 |
1 files changed, 2 insertions, 2 deletions
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")) {
|