From 988107060ad42f274d5e9f7c24b43ce6d33eb5c7 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 13 Jan 2012 16:06:02 +0000 Subject: [PATCH] Test and fix for #5982 - FormLayout now updates caption style names when the component is updated svn changeset:22631/svn branch:6.7 --- src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java index 174e66b7aa..5f2884391f 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java @@ -327,8 +327,7 @@ public class VFormLayout extends SimplePanel implements Container { } private void setStyles(String[] styles) { - String styleName = CLASSNAME; - + String style = CLASSNAME; if (styles != null) { for (String style : styles) { if (ApplicationConnection.DISABLED_CLASSNAME.equals(style)) { @@ -340,8 +339,7 @@ public class VFormLayout extends SimplePanel implements Container { styleName += " " + CLASSNAME + "-" + style; } } - - setStyleName(styleName); + setStyleName(style); } public void updateCaption(UIDL uidl) { -- 2.39.5