Hi everyone,
Consider the following code example:
[code]
VerticalLayout root = new VerticalLayout();
Accordion accordionContainer = new Accordion();
accordionContainer.setSizeFull();
for(int i=0;i<=20;i++) {
accordionContainer.addTab(new Label("Some content"), "Some title for Accordion menu", null);
}
Panel panel = new Panel("Accordion inside Panel component");
panel.setWidth("100%");
panel.setHeight("400px");
panel.setContent(accordionContainer);
root.setSizeFull();
root.addComponent(panel);
setContent(root);
[/code]As you see, we are pushing lots of tabs inside the accordion component, and its container panel component shows vertical scrollbar as the content overflows, which was expected. But you should have already noticed, all tabs inside the accordion component are collapsed, and there is no way opening them…
Is there a workaround for this issue? Any help appreciated.