horizontal layout

hi vaadiners :wink:

i try the create a custom view with at first a label logo and and a menu bar. the label/logo is higher the the menubar , how to set menubar at the same hight (or share the layout hight ?)
root = new HorizontalLayout();
//root.setSizeFull();
Label title = new Label(“MesPhotos”);
title.setStyleName(“usethewebfont”);

    root.addComponent(title);        
    menubar = new MenuBar();

    root.addComponent(menubar);

// root.setHeight(“100%”);

    root.setExpandRatio(menubar, 2);

thx for advices
bruno

Hi.

You could try setting component alignment to the menubar, eg.

root.setComponentAlignment(menubar, Alignment.BOTTOM_LEFT);

Or if you have a more specific positionining you could use CSS margins+padding to align the component.

  • Mikael