diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-08-30 05:32:12 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-08-30 05:32:12 +0000 |
commit | 77a1ffab17b65060a34ff82dad8da40246080370 (patch) | |
tree | 34f2665e4949852c24dfa4e824379c1ebca34c51 /src | |
parent | 8bf7cdbbb5db8981525b9ad2fb35c78c176e34b8 (diff) | |
download | vaadin-framework-77a1ffab17b65060a34ff82dad8da40246080370.tar.gz vaadin-framework-77a1ffab17b65060a34ff82dad8da40246080370.zip |
Made even/odd rows backwards compatible
svn changeset:14648/svn branch:6.4
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 5870064248..60c6af7614 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -3567,7 +3567,10 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, */ private void setIndex(int indexInWholeTable) { boolean isOdd = indexInWholeTable % 2 == 0; - if (isOdd) { + // Inverted logic to be backwards compatible with earlier 6.4. + // It is very strange because rows 1,3,5 are considered "even" + // and 2,4,6 "odd". + if (!isOdd) { addStyleName(ROW_CLASSNAME_ODD); } else { addStyleName(ROW_CLASSNAME_EVEN); |