PDA

View Full Version : [1.2.3] AccordionLayout and TopComponent



smfed
12 May 2009, 5:23 AM
This bug is pretty obvious probably it is fixed somwhere already but I couldn't find it with search



west = new ContentPanel();
west.setLayout(new AccordionLayout());

ContentPanel searchPanel = new ContentPanel(new FitLayout());
searchPanel.setHeading("Search");

ContentPanel treePanel = new ContentPanel(new FitLayout());
treePanel.setHeading("TableTree");


ToolBar toolBar = new ToolBar();
Button button = new Button("Foo");
toolBar.add(new AdapterToolItem(button));

treePanel.setTopComponent(toolBar);

west.add(treePanel);
west.add(searchPanel);


When you close and open first (upper) panel in accordion layout second panel will disappear from screen. If you remove topComponent everything works fine

smfed
14 May 2009, 5:55 AM
Up.

Hello. Can someone confirm this bug?

Thank you