summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2010-11-09 14:55:27 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2010-11-09 14:55:27 +0000
commitae2df6652a3c5bed0c54a662dcf64ed810203c0e (patch)
treedcc11e8a605ebb36839546a6f054f27abecf21c3 /src
parent43755ba5e271e6ec1e9a710014896f9e23a26693 (diff)
downloadvaadin-framework-ae2df6652a3c5bed0c54a662dcf64ed810203c0e.tar.gz
vaadin-framework-ae2df6652a3c5bed0c54a662dcf64ed810203c0e.zip
minor enhancement: don't display scroll position information if less than pagelenght rows are in the table
svn changeset:15940/svn branch:6.5
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 6550e8eb6b..0f8c505a9a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -1594,9 +1594,10 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
// tell scroll position to user if currently "visible" rows are
// not rendered
- if ((firstRowInViewPort + pageLength > scrollBody
- .getLastRendered())
- || (firstRowInViewPort < scrollBody.getFirstRendered())) {
+ if (totalRows > pageLength
+ && ((firstRowInViewPort + pageLength > scrollBody
+ .getLastRendered()) || (firstRowInViewPort < scrollBody
+ .getFirstRendered()))) {
announceScrollPosition();
} else {
hideScrollPositionAnnotation();