]> source.dussan.org Git - vaadin-framework.git/commitdiff
#5982 Add the "v-disabled" class name as-is also in addition to prefixed to make...
authorArtur Signell <artur.signell@itmill.com>
Mon, 16 Jan 2012 12:10:25 +0000 (12:10 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 16 Jan 2012 12:10:25 +0000 (12:10 +0000)
svn changeset:22640/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java

index 5f2884391fd9ca516c0169e8112a8de4a3a9fd68..174e66b7aaba0abf988e541989eebd967f818a85 100644 (file)
@@ -327,7 +327,8 @@ public class VFormLayout extends SimplePanel implements Container {
         }
 
         private void setStyles(String[] styles) {
-            String style = CLASSNAME;
+            String styleName = CLASSNAME;
+
             if (styles != null) {
                 for (String style : styles) {
                     if (ApplicationConnection.DISABLED_CLASSNAME.equals(style)) {
@@ -339,7 +340,8 @@ public class VFormLayout extends SimplePanel implements Container {
                     styleName += " " + CLASSNAME + "-" + style;
                 }
             }
-            setStyleName(style);
+
+            setStyleName(styleName);
         }
 
         public void updateCaption(UIDL uidl) {