Example usage for com.google.gwt.user.client Window getScrollTop

List of usage examples for com.google.gwt.user.client Window getScrollTop

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window getScrollTop.

Prototype

public static int getScrollTop() 

Source Link

Usage

From source file:virtuozo.interfaces.Component.java

License:Apache License

public C scrollTo() {
    double left = Window.getScrollLeft() + this.left();
    double top = Window.getScrollTop() + this.top();

    Window.scrollTo((int) left, (int) top);
    return (C) this;
}