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

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


    getPropertyEditor().setType(type);
  }

  @Override
  protected Size adjustInputSize() {
    return new Size(isHideTrigger() ? 0 : trigger.getStyleSize().width, 0);
  }
View Full Code Here


    }
  }

  @Override
  protected Size adjustInputSize() {
    return new Size(hideTrigger ? 0 : trigger.getStyleSize().width, 0);
  }
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

  }

  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

      }

      return;
    }

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

    List<FastMap<Object>> list = makeVisible();

    lastSize = size;

    Size ads = adjustSize(size);

    int aw = ads.width;
    int ah = ads.height;

    if (autoWidth) {
View Full Code Here

      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

  }

  @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

          data.setSize((Float) st.get("size"));
        }
      }
    }

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

    int sLeft = target.getPadding("l");
    int sTop = target.getPadding("t");
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

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.