Example usage for com.vaadin.ui ComponentContainer setWidthUndefined

List of usage examples for com.vaadin.ui ComponentContainer setWidthUndefined

Introduction

In this page you can find the example usage for com.vaadin.ui ComponentContainer setWidthUndefined.

Prototype

public void setWidthUndefined();

Source Link

Document

Clears any defined width.

Usage

From source file:com.esofthead.mycollab.mobile.ui.AbstractPreviewItemComp.java

License:Open Source License

public AbstractPreviewItemComp() {

    previewForm = initPreviewForm();// www . ja  v  a2  s  .co m
    previewForm.setStyleName("readview-layout");
    this.setContent(previewForm);

    editBtn = new NavigationBarQuickMenu();
    editBtn.setButtonCaption(null);
    editBtn.setStyleName("edit-btn");
    editBtn.setContent(createButtonControls());
    this.setRightComponent(editBtn);

    initRelatedComponents();

    ComponentContainer toolbarContent = createBottomPanel();
    if (toolbarContent != null) {
        toolbarContent.addStyleName("related-items");
        toolbarContent.setHeight("100%");
        toolbarContent.setWidthUndefined();

        MobileViewToolbar toolbar = new MobileViewToolbar();
        toolbar.setComponent(toolbarContent);
        this.setToolbar(toolbar);
    }
}