diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-11-09 14:55:27 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-11-09 14:55:27 +0000 |
commit | ae2df6652a3c5bed0c54a662dcf64ed810203c0e (patch) | |
tree | dcc11e8a605ebb36839546a6f054f27abecf21c3 /src | |
parent | 43755ba5e271e6ec1e9a710014896f9e23a26693 (diff) | |
download | vaadin-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.java | 7 |
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(); |