Ver código fonte

Index indicator (while scrolling) now takes actual table height into account, not just pagelength; fixes #1848

svn changeset:4992/svn branch:trunk
tags/6.7.0.beta1
Marc Englund 16 anos atrás
pai
commit
3d78fde0c5

+ 6
- 3
src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java Ver arquivo

@@ -765,12 +765,15 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
.getElementPropertyInt(getElement(), "offsetHeight") - 2)
+ "px");

int last = (firstRowInViewPort + pageLength);
// indexes go from 1-totalRows, as rowheaders in index-mode indicate
int last = (firstRowInViewPort + (bodyContainer.getOffsetHeight() / tBody
.getRowHeight()));
if (last > totalRows) {
last = totalRows;
}
DOM.setInnerHTML(scrollPositionElement, "<span>" + firstRowInViewPort
+ " &ndash; " + last + "..." + "</span>");
DOM.setInnerHTML(scrollPositionElement, "<span>"
+ (firstRowInViewPort + 1) + " &ndash; " + last + "..."
+ "</span>");
DOM.setStyleAttribute(scrollPositionElement, "display", "block");
}


Carregando…
Cancelar
Salvar