Hi there, I’m working on simple sidebar, I want to place some buttons each after another. If I don’t define height of my layout it works fine, but when I set it to 100% (with is need for sidebar) items share the space equally, how can I disable that? I need this effect:
http://scr.hu/98tt/oybva
you can create another VerticalLayout that has undefined height inside your sidebar.
eg.
layout.setHeight("100%"); /*your sidebar*/
VerticalLayout innerlayout = new VerticalLayout();
innerLayout.setHeightUndefined(); /*optional*/
innerlayout.addComponent(new Button("A"));
innerlayout.addComponent(new Button("B"));
...
layout.addComponent(innerlayout);