diff options
author | Anna Koskinen <anna@vaadin.com> | 2013-01-11 11:48:32 +0200 |
---|---|---|
committer | Anna Koskinen <anna@vaadin.com> | 2013-01-11 11:48:32 +0200 |
commit | f9dca2ef3f4b25ef5516fefc5cf3b037e75996cd (patch) | |
tree | 5b456e0998a9591233f2cb6d6bacd769b89dbdb1 /client/src | |
parent | 0b6c89db179c03903db2423f4925ad097ce001c7 (diff) | |
download | vaadin-framework-f9dca2ef3f4b25ef5516fefc5cf3b037e75996cd.tar.gz vaadin-framework-f9dca2ef3f4b25ef5516fefc5cf3b037e75996cd.zip |
Merge of (#8298) to Vaadin 7.
Viewport calculation fix.
Change-Id: Ic5195e5f7027ab41f18ddcd8262f9b5a23a0da8b
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/com/vaadin/client/ui/VScrollTable.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java index e2f5e9b57d..a8cee55375 100644 --- a/client/src/com/vaadin/client/ui/VScrollTable.java +++ b/client/src/com/vaadin/client/ui/VScrollTable.java @@ -4728,7 +4728,8 @@ public class VScrollTable extends FlowPanel implements HasWidgets, */ public boolean isInViewPort() { int absoluteTop = getAbsoluteTop(); - int scrollPosition = scrollBodyPanel.getScrollPosition(); + int scrollPosition = scrollBodyPanel.getAbsoluteTop() + + scrollBodyPanel.getScrollPosition(); if (absoluteTop < scrollPosition) { return false; } |