Changeset 4791
- Timestamp:
- 06/09/08 07:14:44 (3 months ago)
- Files:
-
- 1 modified
-
branches/5.2/src/com/itmill/toolkit/ui/Table.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/src/com/itmill/toolkit/ui/Table.java
r4486 r4791 1149 1149 final int pagelen = getPageLength(); 1150 1150 int firstIndex = getCurrentPageFirstItemIndex(); 1151 int rows = size(); 1151 int rows, totalRows; 1152 rows = totalRows = size(); 1152 1153 if (rows > 0 && firstIndex >= 0) { 1153 1154 rows -= firstIndex; … … 1163 1164 Object id; 1164 1165 if (firstToBeRenderedInClient >= 0) { 1165 if (firstToBeRenderedInClient < size()) {1166 if (firstToBeRenderedInClient < totalRows) { 1166 1167 firstIndex = firstToBeRenderedInClient; 1167 1168 } else { 1168 firstIndex = size()- 1;1169 firstIndex = totalRows - 1; 1169 1170 } 1170 1171 } else { … … 1172 1173 firstToBeRenderedInClient = firstIndex; 1173 1174 } 1174 if ( size()> 0) {1175 if (rows + firstIndex > size()) {1176 rows = size()- firstIndex;1175 if (totalRows > 0) { 1176 if (rows + firstIndex > totalRows) { 1177 rows = totalRows - firstIndex; 1177 1178 } 1178 1179 } else {
