summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2013-09-30 10:54:11 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2013-09-30 10:54:11 +0000
commit572689d4a790dba5d9cf82e83d01c3d923a471c9 (patch)
tree10b5adb510c2f1d2f13c47f64cc51385517b0578
parent1d645c4a18a4e24a80ad0351a90ab0f177c7e84f (diff)
downloadvaadin-framework-572689d4a790dba5d9cf82e83d01c3d923a471c9.tar.gz
vaadin-framework-572689d4a790dba5d9cf82e83d01c3d923a471c9.zip
Fixed another regression for #12407
svn changeset:26154/svn branch:6.8
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index 7dfdf2de8a..17bc4db41b 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -1259,7 +1259,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
.getIntVariable("firstvisible") : 0;
firstVisibleOnLastPage = uidl.hasVariable("firstvisibleonlastpage") ? uidl
.getIntVariable("firstvisibleonlastpage") : -1;
- if (firstvisible != lastRequestedFirstvisible) {
+ if (firstvisible != lastRequestedFirstvisible && scrollBody != null) {
// Only scroll if the first visible changes from the server side.
// Else we might unintentionally scroll even when the scroll
// position has not changed.
@@ -1269,6 +1269,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
private void scrollToFirstVisible() {
if (firstvisible > 0) {
+ firstRowInViewPort = firstvisible;
if (firstVisibleOnLastPage > -1) {
scrollBodyPanel
.setScrollPosition(measureRowHeightOffset(firstVisibleOnLastPage));