From de45cafb0f9eaa3bbac6bde4da065915f2c1c4c2 Mon Sep 17 00:00:00 2001 From: Automerge Date: Thu, 19 Apr 2012 13:07:45 +0000 Subject: [PATCH] [merge from 6.7] Skipping "scroll selected/focused row into view" on touch devices as it breaks androids with broken scrolltop and should be obsolete on touch devices anyway svn changeset:23593/svn branch:6.8 --- src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 1d20784264..a022a2bd83 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -6501,6 +6501,11 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, * The row to ensure is visible */ private void ensureRowIsVisible(VScrollTableRow row) { + if (BrowserInfo.get().isTouchDevice()) { + // Skip due to android devices that have broken scrolltop will may + // get odd scrolling here. + return; + } Util.scrollIntoViewVertically(row.getElement()); } -- 2.39.5