Examples of lengthIsFixed()


Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

    int maxInnerWidth;
    int minInnerWidth = 0;

    if (shrinkWrap) {
      maxInnerWidth = getMaximumWidth(containerWidth);
    } else if (style.lengthIsFixed(Style.WIDTH, true)){
      maxInnerWidth = style.getPx(Style.WIDTH, containerWidth);
      minInnerWidth = maxInnerWidth;
    } else {
      maxInnerWidth = containerWidth - left - right;
    }
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

        specWidths[column] = Math.max(specWidths[column],
            cell.getSpecifiedWidth(maxInnerWidth));
        maxWidths[column] = Math.max(maxWidths[column],
            cell.getMaximumWidth(maxInnerWidth));
        Style cellStyle = cell.getElement().getComputedStyle();
        isFixed[column] |= cellStyle.lengthIsFixed(Style.WIDTH, false);
       // ||(cellStyle.lengthIsFixed(Style.WIDTH, true) && specWidths[column]
       //< minWidths[column]);
      }
    }
   
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

    int bottom = marginBottom + borderBottom + paddingBottom;

    // ShrinkWrap means we need to calculate the width based on the contents
    // for floats, table entries etc. without a fixed width
    if (shrinkWrap) {
      outerMaxWidth = style.lengthIsFixed(Style.WIDTH, true)
      ? style.getPx(Style.WIDTH, outerMaxWidth) + left + right
          : Math.min(outerMaxWidth, getMaximumWidth(containingWidth));
      // Otherwise, if this is not a table cell and the width is fixed, we need
      // to calculate the value for auto margins here (This is typically used
      // to center the contents).
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

          : Math.min(outerMaxWidth, getMaximumWidth(containingWidth));
      // Otherwise, if this is not a table cell and the width is fixed, we need
      // to calculate the value for auto margins here (This is typically used
      // to center the contents).
    } else if (display != Style.TABLE_CELL &&
        style.lengthIsFixed(Style.WIDTH, true)) {
      int remaining = (containingWidth -
          style.getPx(Style.WIDTH, containingWidth) - left - right);

      if (style.getEnum(Style.MARGIN_LEFT) == Style.AUTO) {
        if (style.getEnum(Style.MARGIN_RIGHT) == Style.AUTO) {
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

      boxHeight = top + style.getPx(Style.HEIGHT, getParent().getHeight()) + bottom;
    }

    // If this is an image element, handle image here and return
    if (image != null) {
      boolean fixedWidth = style.lengthIsFixed(Style.WIDTH, true);

      if (fixedHeight && fixedWidth) {
        int w = style.getPx(Style.WIDTH, containingWidth);
        int h = style.getPx(Style.HEIGHT, containingWidth);
        if ((w != image.getWidth() || h != image.getHeight()) && w > 0 && h > 0) {
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

    int maxW = minW;

    int currentLineWidth = 0;

    if (display != Style.TABLE_CELL &&
        style.lengthIsFixed(Style.WIDTH, false)) {
      minW = maxW = style.getPx(Style.WIDTH, containerWidth);
    } else if (image != null) {
      maxW = minW = image.getWidth();
    } else {
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

    int right = style.getPx(Style.MARGIN_RIGHT, containerWidth);
    int left = style.getPx(Style.MARGIN_LEFT, containerWidth);

    int w;

    if (style.lengthIsFixed(Style.WIDTH, false)) {
      w = left + style.getPx(Style.WIDTH, containerWidth) + right;
    } else {
      switch (type) {
        case Skin.INPUT_TYPE_CHECKBOX:
        case Skin.INPUT_TYPE_RADIOBUTTON:
View Full Code Here

Examples of com.google.minijoe.html.css.Style.lengthIsFixed()

    Style style = element.getComputedStyle();
    int top = style.getPx(Style.MARGIN_TOP, outerMaxWidth);
    int bottom = style.getPx(Style.MARGIN_BOTTOM, outerMaxWidth);
    int fh = style.getFont().getHeight();

    boxWidth = Math.min(outerMaxWidth, style.lengthIsFixed(Style.WIDTH, true)
        ? getSpecifiedWidth(outerMaxWidth) : getMinimumWidth(outerMaxWidth));

    switch(type) {
      case Skin.INPUT_TYPE_TEXTAREA:
        String rowsAttr = element.getAttributeValue("rows");
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.