Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.Style.clearWidth()


      style.clearBottom();
    }
    if (layer.setWidth) {
      setValue(layer, "width", layer.width, layer.widthUnit, false, true);
    } else {
      style.clearWidth();
    }
    if (layer.setHeight) {
      setValue(layer, "height", layer.height, layer.heightUnit, true, true);
    } else {
      style.clearHeight();
View Full Code Here


    // Cleanup child styles set by fillParent().
    Style style = child.getStyle();
    style.clearPosition();
    style.clearLeft();
    style.clearTop();
    style.clearWidth();
    style.clearHeight();
  }
}
View Full Code Here

    image.setPixelSize(width, height);
    //TODO(user,danilatos): Whinge about how declarative UI doesn't let us avoid this hack:
    Style pstyle = image.getElement().getParentElement().getParentElement().getStyle();
    if (width == 0) {
      image.setWidth("");
      pstyle.clearWidth();
    } else {
      pstyle.setWidth(width, Unit.PX);
    }
    if (height == 0) {
      image.setHeight("");
View Full Code Here

      chromeContainer.getElement().getStyle().setDisplay(Display.NONE);

      image.setPixelSize(attachmentWidth, attachmentHeight);
      if (attachmentWidth == 0) {
        image.setWidth("");
        pstyle.clearWidth();
      } else {
        pstyle.setWidth(attachmentWidth, Unit.PX);
      }
      if (attachmentHeight == 0) {
        image.setHeight("");
View Full Code Here

    // Cleanup child styles set by fillParent().
    Style style = child.getStyle();
    style.clearPosition();
    style.clearLeft();
    style.clearTop();
    style.clearWidth();
    style.clearHeight();
  }
}
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.