]> source.dussan.org Git - vaadin-framework.git/commitdiff
Workaround for #6064 until fixed for real
authorArtur Signell <artur.signell@itmill.com>
Fri, 26 Nov 2010 11:56:17 +0000 (11:56 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 26 Nov 2010 11:56:17 +0000 (11:56 +0000)
svn changeset:16190/svn branch:6.5

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

index c74199b3a8a77ab22d76db233e333c93f1814180..5bede15597d7c0fbd3d68a88ff66c2a26f231d87 100644 (file)
@@ -2203,14 +2203,19 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                 colIndex = getColIndexByKey(cid);
                 boolean noCells = false;
                 TableRowElement item = rows.getItem(0);
-                TableCellElement colTD = item.getCells().getItem(colIndex);
+
+                // FIXME: Changed this from colIndex to 0 to workaround #6064
+                TableCellElement colTD = item.getCells().getItem(0);
                 if (colTD == null) {
                     // content is currently empty, we need to add a fake cell
                     // for measuring
                     noCells = true;
                     VScrollTableRow next = (VScrollTableRow) iterator().next();
                     next.addCell(null, "", align, "", true, isSorted());
-                    colTD = item.getCells().getItem(colIndex);
+
+                    // FIXME: Changed this from colIndex to 0 to workaround
+                    // #6064
+                    colTD = item.getCells().getItem(0);
                 }
                 com.google.gwt.dom.client.Element wrapper = colTD
                         .getFirstChildElement();