Browse Source

Trying to get everything roll with empty tables

svn changeset:833/svn branch:trunk
tags/6.7.0.beta1
Matti Tahvonen 17 years ago
parent
commit
6fcece6172
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/com/itmill/toolkit/ui/Table.java

+ 6
- 2
src/com/itmill/toolkit/ui/Table.java View File

@@ -1559,10 +1559,14 @@ public class Table extends Select implements Action.Container,
Object id;
if (reqFirstRowToPaint >= 0 && reqFirstRowToPaint < size())
firstIndex = reqFirstRowToPaint;
if (rows + firstIndex > size()) rows = size() - firstIndex;
if(size() > 0) {
if (rows + firstIndex > size()) rows = size() - firstIndex;
} else {
rows = 0;
}

Object[][] cells = new Object[cols + CELL_FIRSTCOL][rows];
if (rows == 0 || size() == 0)
if (rows == 0)
return cells;

// Get first item id

Loading…
Cancel
Save