summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-06-06 13:07:21 +0000
committerAutomerge <automerge@vaadin.com>2012-06-06 13:07:21 +0000
commit8eae5a4313ea8ddba38bd42c93043a9a6fa9ce03 (patch)
tree50603d822342226e2dca6d04b65cba02a6d9faf9 /src
parent948b55f86a4a7981ca576f6304820c644f418e61 (diff)
downloadvaadin-framework-8eae5a4313ea8ddba38bd42c93043a9a6fa9ce03.tar.gz
vaadin-framework-8eae5a4313ea8ddba38bd42c93043a9a6fa9ce03.zip
[merge from 6.7] #7606 Run a Webkit overflow fix as deferred to keep table scroll position accurate
svn changeset:23896/svn branch:6.8
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java9
1 files changed, 8 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 9bfd013603..8d0414a235 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -6247,7 +6247,14 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
// Webkit may sometimes get an odd rendering bug (white space
// between header and body), see bug #3875. Running
// overflow hack here to shake body element a bit.
- Util.runWebkitOverflowAutoFix(scrollBodyPanel.getElement());
+ // We must run the fix as a deferred command to prevent it from
+ // overwriting the scroll position with an outdated value, see
+ // #7606.
+ Scheduler.get().scheduleDeferred(new Command() {
+ public void execute() {
+ Util.runWebkitOverflowAutoFix(scrollBodyPanel.getElement());
+ }
+ });
}
/*