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

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

Introduction

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

Prototype

public GQuery width(int width) 

Source Link

Document

Set the width of every matched element.

Usage

From source file:org.kaaproject.avro.ui.gwt.client.widget.choosen.AvroChoosenListBox.java

License:Apache License

public static void setChoosenSearchFieldWidth(ChosenListBox box, String width) {
    ChosenImpl impl = $(box.getElement()).data(CHOSEN_DATA_KEY, ChosenImpl.class);
    if (impl != null) {
        GQuery searchfield = impl.getContainer().find("li." + avroChoosenResources.css().searchField()).first();
        searchfield.width(width);
        GQuery searchFieldInput = searchfield.find("input." + avroChoosenResources.css().defaultClass())
                .first();//from   w  w w.  j  a  v a  2 s. c o m
        if (searchFieldInput != null) {
            searchFieldInput.width(width);
        }
    }
}