Help with my header

hi everyone,

i need help with my little web pag :stuck_out_tongue:

i need one header responsive when i minimize the window

the header still appear in my web pag

my code is the next:

/*principal class/

Panel panelStaticTop = new Panel();
panelStaticTop.setSizeFull();

panelStaticTop.setContent(new FirstHorizontalTop());

/****/

public class FirstHorizontalTop extends HorizontalLayout {

ComboBox combo = new ComboBox();
Button btnBuscar = new Button("Buscar");
Button btnGrabar = new Button("Grabar");
Button btnAutorizar = new Button("Autorizar");

public FirstHorizontalTop(){
    addStyleName("FirstHorizontalTop");
    setSizeFull();
    
    combo.addStyleName("combo");
    combo.setWidth("600px");
    combo.addItem("pepe");
    combo.addItem("pepe1");
    combo.addItem("pepe2");
    combo.addItem("pepe3");
    combo.addItem("pepe4");
    
    btnBuscar.addStyleName("btnBuscar");
    btnGrabar.addStyleName("btnGrabar");
    btnAutorizar.addStyleName("btnAutorizar");
    
    addComponent(combo);
    addComponent(btnBuscar);
    addComponent(btnGrabar);
    addComponent(btnAutorizar);
    
    setExpandRatio(combo, 2.1f);
    setExpandRatio(btnBuscar, 0.3f);
    setExpandRatio(btnGrabar, 0.3f);
    setExpandRatio(btnAutorizar, 0.3f);
}

}

well i need that my header will be responsive, somebody have one idea?

ty guys :slight_smile:

Hi,

Check the Vaadin Responsive -addon in the directory
http://vaadin.com/directory#addon/vaadin-responsive:vaadin

very ty bro i will test the responsive addon now :stuck_out_tongue: