summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-04-19 13:07:45 +0000
committerAutomerge <automerge@vaadin.com>2012-04-19 13:07:45 +0000
commitde45cafb0f9eaa3bbac6bde4da065915f2c1c4c2 (patch)
tree9c7c97427ee20c7dc704acda69a7f6a36d708c3b /src/com/vaadin/terminal
parent3e090564a903aa1f39ef212d21382ffeab43e6cd (diff)
downloadvaadin-framework-de45cafb0f9eaa3bbac6bde4da065915f2c1c4c2.tar.gz
vaadin-framework-de45cafb0f9eaa3bbac6bde4da065915f2c1c4c2.zip
[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
Diffstat (limited to 'src/com/vaadin/terminal')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java5
1 files changed, 5 insertions, 0 deletions
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());
}