View Full Version : Accordion Layout Scrolling

29 Jul 2010, 11:08 AM
Say I have a ContentPanel as part of a Window, in it I want to have an AccordionLayout. I don't know how many entries in the AccordionLayout I'm going to have, it's variable. The AccordionLayout will stretch to fit the ContentPanel, but if I have too many entries, it will compress each one down and I may not be able to see the full content of each. I can make each Accordion entry visible by setting each inner ContentPanel to have a min height - cp.setBodyStyle("min-height:50px") and cp.setScrollMode(Scroll.AUTOY). However, that doesn't make the overall Accordion scrollable. How can I make this work?

I'm thinking I'd have to have the CP with the AccordionLayout contained within another CP that would control the overall scrolling issues.

17 Oct 2010, 12:52 AM
Hi thejoker101,

I'd like to know if you've found a solution to this? I'm facing the same scenario. I hope you could help me out.