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

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


        return rect;
    }

    public void setMainModule(Module mainModule) {
        Point p = mainModule.getContainer().getPosition(false);
        Size s = mainModule.getContainer().getSize();

        final Rectangle rect = new Rectangle(p.x, p.y, s.width, s.height);

        this.rect = rect;
    }
View Full Code Here


    }
  }

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

    getPropertyEditor().setType(type);
  }

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

  }

  @Override
  protected void onResize(int width, int height) {
    super.onResize(width, height);
    Size frameWidth = el().getFrameSize();
    width -= frameWidth.width;
    height -= frameWidth.height;
    listView.setSize(width, height);
  }
View Full Code Here

    super.onResize(width, height);

    int aw = width;
    int ah = height;

    Size frameWidth = el().getFrameSize();
    aw -= frameWidth.width;
    ah -= frameWidth.height;

    if (showToolbar && !GXT.isAriaEnabled()) {
      el().down(".x-html-editor-tb").setWidth(aw, true);
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

      int dh = XDOM.getViewHeight(false) - 5;
      int scrollX = XDOM.getBodyScrollLeft() + 5;
      int scrollY = XDOM.getBodyScrollTop() + 5;

      int[] axy = new int[] {xy.x + offsets[0], xy.y + offsets[1]};
      Size sz = getSize();
      Region r = target.el().getRegion();
      anchorEl.removeStyleName(anchorStyle);

      // if we are not inside valid ranges we try to switch the anchor
      if (!((toolTipConfig.getAnchor().equals("top") && (sz.height + offsets[1] + scrollY < dh - r.bottom))
View Full Code Here

  }

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

    height -= frameWidth.height + bar.getHeight();
    width -= frameWidth.width;

    body.setSize(width, height, true);
View Full Code Here

    this.twinTriggerStyle = twinTriggerStyle;
  }

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