From 8018dfba499dc1ca93459c0fba87ceceb4af6768 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Wed, 26 Sep 2012 14:57:30 +0300 Subject: [PATCH] Primary stylename handling for Table #9724 --- client/src/com/vaadin/client/ui/table/VScrollTable.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } -- 2.39.5