]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Skipping "scroll selected/focused row into view" on touch devices...
authorAutomerge <automerge@vaadin.com>
Thu, 19 Apr 2012 13:07:45 +0000 (13:07 +0000)
committerAutomerge <automerge@vaadin.com>
Thu, 19 Apr 2012 13:07:45 +0000 (13:07 +0000)
svn changeset:23593/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 1d20784264cbeaf16677fbec6b87be29cf8bcd6e..a022a2bd83a91b0c0a32309a6080b67319cb480e 100644 (file)
@@ -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());
     }