thejoker101
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.
I'm thinking I'd have to have the CP with the AccordionLayout contained within another CP that would control the overall scrolling issues.