From: John Ahlroos Date: Wed, 26 Sep 2012 11:57:30 +0000 (+0300) Subject: Primary stylename handling for Table #9724 X-Git-Tag: 7.0.0.beta6~87^2~13^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8018dfba499dc1ca93459c0fba87ceceb4af6768;p=vaadin-framework.git Primary stylename handling for Table #9724 --- diff --git a/client/src/com/vaadin/client/ui/table/VScrollTable.java b/client/src/com/vaadin/client/ui/table/VScrollTable.java index db3f69d0b9..f295758603 100644 --- a/client/src/com/vaadin/client/ui/table/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/table/VScrollTable.java @@ -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); }