Package com.extjs.gxt.ui.client.util

Examples of com.extjs.gxt.ui.client.util.Size


      h = -1;
    } else if (!height.equals(Style.UNDEFINED)) {
      h = getOffsetHeight();
    }

    Size size = new Size(w, h);
    if (cacheSizes && lastSize != null && lastSize.equals(size)) {
      return;
    }

    lastSize = size;
View Full Code Here


  /**
   * Clears the size cache and resets to the last known size.
   */
  public void syncSize() {
    Size oldSize = lastSize;
    lastSize = null;
    if (rendered && oldSize != null) {
      setSize(oldSize.width, oldSize.height);
    }
  }
View Full Code Here

  public void setOrientation(Orientation orientation) {
    this.orientation = orientation;
  }

  protected void layoutHorizontal(El target) {
    Size size = target.getStyleSize();

    int w = size.width - (adjustForScroll ? XDOM.getScrollBarWidth() : 0);
    int h = size.height;
    int pw = w;
View Full Code Here

      x += tw + (m != null ? m.right + m.left : 0);
    }
  }

  protected void layoutVertical(El target) {
    Size size = target.getStyleSize();

    int w = size.width - (adjustForScroll ? XDOM.getScrollBarWidth() : 0);
    int h = size.height;
    int ph = h;
View Full Code Here

  }

  protected void onLayout(Container<?> container, El target) {
    super.onLayout(container, target);

    Size size = target.getStyleSize();
   
    int w = size.width - getScrollOffset();
    int h = size.height;

    int l = getPadding().left;
View Full Code Here

  }

  @Override
  protected void onResize(int width, int height) {
    super.onResize(width, height);
    Size frameSize = el().getFrameSize();

    if (isAutoWidth()) {
      getLayoutTarget().setWidth("auto");
    } else if (width != -1) {
      getLayoutTarget().setWidth(width - frameSize.width, true);
View Full Code Here

    if (mainBody == null) {
      return;
    }

    El c = grid.el();
    Size csize = c.getStyleSize();

    int vw = csize.width;
    int vh = 0;
    if (vw < 10 || csize.height < 20) {
      return;
View Full Code Here

    if (mainBody == null) {
      return;
    }

    El c = grid.el();
    Size csize = c.getStyleSize();

    int vw = csize.width;
    int vh = 0;
    if (vw < 10 || csize.height < 20) {
      return;
View Full Code Here

  }

  @Override
  protected void onLayout(Container<?> container, El target) {
    super.onLayout(container, target);
    Size size = target.getStyleSize();

    int w = size.width, h = size.height;

    int aw, ah;
View Full Code Here

    if (lastSize != null) {
      if (lastSize.width == w && lastSize.height == h) {
        return;
      }
    }
    lastSize = new Size(w, h);
    header.resizeColumns(false, true);
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.util.Size

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.