Example usage for com.google.gwt.dom.client Style clearBottom

List of usage examples for com.google.gwt.dom.client Style clearBottom

Introduction

In this page you can find the example usage for com.google.gwt.dom.client Style clearBottom.

Prototype

public void clearBottom() 

Source Link

Usage

From source file:burrito.client.widgets.form.EditForm.java

License:Apache License

public void makeButtonsStick(boolean stick) {
    getElement().getStyle().setPropertyPx("minHeight", getOffsetHeight());
    Style style = buttonWrapper.getElement().getStyle();
    buttonWrapper.addStyleName("k5-EditForm-fixedButtons");
    if (stick) {// w  ww  .  j  ava2s .c  o m
        style.setPosition(Position.FIXED);
        style.setBottom(0, Unit.PX);
        style.setLeft(getAbsoluteLeft(), Unit.PX);
        style.setWidth(getOffsetWidth(), Unit.PX);
    } else {
        style.clearPosition();
        style.clearBottom();
        style.clearLeft();
        style.clearWidth();
    }

}

From source file:fr.putnami.pwt.core.widget.client.Affix.java

License:Open Source License

private void clearElementStyle() {
    Element e = this.getElement();
    Style style = e.getStyle();

    style.clearPosition();/* ww w.ja v a 2  s .c o  m*/
    style.clearTop();
    style.clearBottom();
    style.clearWidth();
    style.clearHeight();
    style.clearZIndex();
    e.getParentElement().getStyle().clearPaddingTop();
}

From source file:geogebra.web.gui.app.docklayout.LayoutImpl.java

License:Apache License

public void layout(Layer layer) {
    Style style = layer.container.getStyle();

    if (layer.visible) {
        style.clearDisplay();/* ww  w  .j a va 2s  . c  o  m*/
    } else {
        style.setDisplay(Display.NONE);
    }

    style.setProperty("left", layer.setLeft ? (layer.left + layer.leftUnit.getType()) : "");
    style.setProperty("top", layer.setTop ? (layer.top + layer.topUnit.getType()) : "");
    style.setProperty("right", layer.setRight ? (layer.right + layer.rightUnit.getType()) : "");
    style.setProperty("bottom", layer.setBottom ? (layer.bottom + layer.bottomUnit.getType()) : "");
    style.setProperty("width", layer.setWidth ? (layer.width + layer.widthUnit.getType()) : "");
    style.setProperty("height", layer.setHeight ? (layer.height + layer.heightUnit.getType()) : "");

    style = layer.child.getStyle();
    switch (layer.hPos) {
    case BEGIN:
        style.setLeft(0, Unit.PX);
        style.clearRight();
        break;
    case END:
        style.clearLeft();
        style.setRight(0, Unit.PX);
        break;
    case STRETCH:
        style.setLeft(0, Unit.PX);
        style.setRight(0, Unit.PX);
        break;
    }

    switch (layer.vPos) {
    case BEGIN:
        style.setTop(0, Unit.PX);
        style.clearBottom();
        break;
    case END:
        style.clearTop();
        style.setBottom(0, Unit.PX);
        break;
    case STRETCH:
        style.setTop(0, Unit.PX);
        style.setBottom(0, Unit.PX);
        break;
    }
}