瀏覽代碼

added null check, Table now doesn'd die if no properties but n items: Table table = new Table();table.addItem();layout.addComponent(table);

svn changeset:20618/svn branch:6.6
tags/6.7.0.beta1
Matti Tahvonen 13 年之前
父節點
當前提交
4c5d1f8f3d
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

+ 3
- 2
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java 查看文件

@@ -3969,8 +3969,9 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
// for measuring
noCells = true;
VScrollTableRow next = (VScrollTableRow) iterator().next();
next.addCell(null, "", ALIGN_LEFT, "", true, tHead
.getHeaderCell(0).isSorted());
boolean sorted = tHead.getHeaderCell(0) != null ? tHead
.getHeaderCell(0).isSorted() : false;
next.addCell(null, "", ALIGN_LEFT, "", true, sorted);
firstTD = item.getCells().getItem(0);
}
com.google.gwt.dom.client.Element wrapper = firstTD

Loading…
取消
儲存