]> source.dussan.org Git - vaadin-framework.git/commitdiff
Primary stylename handling for Table #9724
authorJohn Ahlroos <john@vaadin.com>
Wed, 26 Sep 2012 11:57:30 +0000 (14:57 +0300)
committerJohn Ahlroos <john@vaadin.com>
Wed, 26 Sep 2012 11:57:30 +0000 (14:57 +0300)
client/src/com/vaadin/client/ui/table/VScrollTable.java

index db3f69d0b9059342d894dce2508350884d08751e..f2957586036ef1efdab0c0342f221974760ea9c0 100644 (file)
@@ -4567,7 +4567,13 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             }
 
             protected void updateStyleNames(String primaryStyleName) {
-                setStyleName(primaryStyleName + "-row");
+
+                if (getStylePrimaryName().contains("odd")) {
+                    setStyleName(primaryStyleName + "-row-odd");
+                } else {
+                    setStyleName(primaryStyleName + "-row");
+                }
+
                 if (rowStyle != null) {
                     addStyleName(primaryStyleName + "-row-" + rowStyle);
                 }