PDA

View Full Version : [FIXED] AccordianLayout.setActiveOnTop() doesn't work.



EvilTed
28 Jul 2008, 9:16 AM
- Detailed description of the problem=

The setActiveOnTop method of the AccordianLayout does not work.

- GXT version = 1.0.1
- Host mode / web mode / both = both
- Browser and version = FireFox 3.0, IE 6.0
- Operating System = Vista + SP1, XP + SP2
- Sample code


public class TestPanel extends ContentPanel {
@Override
protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);
AccordionLayout layout = new AccordionLayout();
layout.setActiveOnTop(true);
layout.setHideCollapseTool(true);
setLayout(layout);

// Add items to the accordian layout.
ContentPanel p1 = new ContentPanel();
p1.setHeading("foo");
add(p1);
ContentPanel p1 = new ContentPanel();
p2.setHeading("bar");
add(p2);
ContentPanel p1 = new ContentPanel();
p3.setHeading("foobar");
add(p3);
}

Using the sample code above, verify that when the AccordianLayout items are clicked the active item is not on top as expected.

darrellmeyer
2 Aug 2008, 11:23 AM
Fix is in SVN.