Explorar el Código

Trying to get everything roll with empty tables

svn changeset:833/svn branch:trunk
tags/6.7.0.beta1
Matti Tahvonen hace 17 años
padre
commit
6fcece6172
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6
    2
      src/com/itmill/toolkit/ui/Table.java

+ 6
- 2
src/com/itmill/toolkit/ui/Table.java Ver fichero

@@ -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

Cargando…
Cancelar
Guardar