Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.Component.el()


      if (width > 0 && width <= 1) {
        width = width * w;
      }

      int adj = c.el().getMargins("lr");
      width -= adj;

      double height = data.getHeight();
      if (height > 0 && height <= 1) {
        height = height * ph;
 
View Full Code Here


      double height = data.getHeight();
      if (height > 0 && height <= 1) {
        height = height * ph;
      }

      adj = c.el().getMargins("tb");
      height -= adj;

      setSize(c, (int) width, (int) height);
    }
  }
View Full Code Here

          int ch = -1;
          if (vs.length > 1) {
            ch = parseAnchor(vs[1], h, ah, ah);
          }

          cw -= comp.el().getMargins("lr");
          ch -= comp.el().getMargins("tb");

          cw = adjustWidthAnchor(cw, comp);

          setSize(comp, cw, ch);
View Full Code Here

          if (vs.length > 1) {
            ch = parseAnchor(vs[1], h, ah, ah);
          }

          cw -= comp.el().getMargins("lr");
          ch -= comp.el().getMargins("tb");

          cw = adjustWidthAnchor(cw, comp);

          setSize(comp, cw, ch);
        }
View Full Code Here

    int count = container.getItemCount();
    for (int i = 0; i < count; i++) {
      Component c = container.getItem(i);
      int width = (w / count) - getSideMargins(c);
      int height = h - c.el().getMargins("tb");
      setSize(c, width, height);
    }
  }

  @Override
View Full Code Here

    int count = container.getItemCount();
    for (int i = 0; i < count; i++) {
      Component c = container.getItem(i);
      int width = w - getSideMargins(c);
      int height = (h / count) - c.el().getMargins("tb");
      setSize(c, width, height);
    }
  }

}
View Full Code Here

    // some columns can be percentages while others are fixed
    // so we need to make 2 passes
    for (int i = 0; i < count; i++) {
      Component c = container.getItem(i);
      c.el().makePositionable(true);
      c.el().setStyleAttribute("margin", "0px");
      RowData data = (RowData) getLayoutData(c);
      if (data == null) {
        data = new RowData();
        setLayoutData(c, data);
View Full Code Here

    // some columns can be percentages while others are fixed
    // so we need to make 2 passes
    for (int i = 0; i < count; i++) {
      Component c = container.getItem(i);
      c.el().makePositionable(true);
      c.el().setStyleAttribute("margin", "0px");
      RowData data = (RowData) getLayoutData(c);
      if (data == null) {
        data = new RowData();
        setLayoutData(c, data);
      }
View Full Code Here

      if (height > 0 && height <= 1) {
        height = height * h;
      } else

      if (height == -1) {
        height = c.el().getHeight(true);
      }

      double width = data.getWidth();
      double fw = width;
      if (width > 0 && width <= 1) {
View Full Code Here

        th -= m.top;
        tw -= m.right;
        th -= m.bottom;
      }

      c.el().setLeftTop(tx, ty);
      setSize(c, tw, th);
      x += fw;
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.