summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/widget/escalator/ScrollbarBundle.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/widget/escalator/ScrollbarBundle.java b/client/src/com/vaadin/client/widget/escalator/ScrollbarBundle.java
index 958029889d..151deb87d1 100644
--- a/client/src/com/vaadin/client/widget/escalator/ScrollbarBundle.java
+++ b/client/src/com/vaadin/client/widget/escalator/ScrollbarBundle.java
@@ -558,7 +558,7 @@ public abstract class ScrollbarBundle implements DeferredWorker {
*/
public final double getScrollPos() {
assert internalGetScrollPos() == toInt32(scrollPos) : "calculated scroll position ("
- + toInt32(scrollPos)
+ + scrollPos
+ ") did not match the DOM element scroll position ("
+ internalGetScrollPos() + ")";
return scrollPos;
@@ -793,7 +793,7 @@ public abstract class ScrollbarBundle implements DeferredWorker {
*/
private static native int toInt32(double val)
/*-{
- return val | 0;
+ return Math.round(val) | 0;
}-*/;
/**