Package com.sencha.gxt.core.client.util

Examples of com.sencha.gxt.core.client.util.Scroll


    if (local) {
      return new Point(x, y);
    }
    if (vp) {
      Scroll sc = getScroll();
      return new Point(x + sc.getScrollLeft(), y + sc.getScrollTop());
    }
    // Add the element's offset xy

    Point o = getXY();
    return new Point(x + o.getX(), y + o.getY());
View Full Code Here


   *
   * @return the scroll position
   */
  public final Scroll getScroll() {
    if (this.cast() == Document.get().getBody() || this == Document.get().getDocumentElement()) {
      return new Scroll(XDOM.getBodyScrollLeft(), XDOM.getBodyScrollTop());
    } else {
      return new Scroll(getScrollLeft(), getScrollTop());
    }
  }
View Full Code Here

    if (local) {
      return new Point(x, y);
    }
    if (vp) {
      Scroll sc = getScroll();
      return new Point(x + sc.getScrollLeft(), y + sc.getScrollTop());
    }
    // Add the element's offset xy

    Point o = getXY();
    return new Point(x + o.getX(), y + o.getY());
View Full Code Here

   *
   * @return the scroll position
   */
  public final Scroll getScroll() {
    if (this.cast() == Document.get().getBody() || this == Document.get().getDocumentElement()) {
      return new Scroll(XDOM.getBodyScrollLeft(), XDOM.getBodyScrollTop());
    } else {
      return new Scroll(getScrollLeft(), getScrollTop());
    }
  }
View Full Code Here

TOP

Related Classes of com.sencha.gxt.core.client.util.Scroll

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.