Example usage for com.google.gwt.query.client GQuery height

List of usage examples for com.google.gwt.query.client GQuery height

Introduction

In this page you can find the example usage for com.google.gwt.query.client GQuery height.

Prototype

public int height() 

Source Link

Document

Get the current computed, pixel, height of the first matched element.

Usage

From source file:com.arcbees.gquery.elastic.client.ElasticImpl.java

License:Apache License

private void init() {
    GQuery $container = $(container);

    $container.css("minHeight", $container.height() + "px");

    if ("static".equals($container.css("position", true))) {
        $container.css("position", "relative");
    }/*from  ww w .ja va 2s .c om*/

    update(true);

    bind();
}

From source file:com.pronoiahealth.olhie.client.pages.bookcase.BookCasePage.java

License:Open Source License

/**
 * Adjusts the container height//www  .  j  a v  a  2s  .  c o  m
 */
private void setContainerSize() {
    GQuery gObj = AppSelectors.INSTANCE.getCenterBackground().first();
    int h = gObj.height();
    this.bookcaseContainer.setHeight("" + h + "px");
}