PDA

View Full Version : [FIXED][Gxt 1.0.4] ContentPanel.setHideCollapseTool(boolean) doesn't work



Alex.Leshkin
9 Sep 2008, 2:01 AM
Detailed description of the problem
ContentPanel.setHideCollapseTool(boolean) method doesn't hide collapse tool item.

GXT version
GXT 1.0.4, GWT 1.5.2

Host mode / web mode / both
both

Browser and version
IE6 SP2

Operating System
Windows XP Home SP2

Sample code



public class TestCase extends ContentPanel implements EntryPoint {

public TestCase() {
setCollapsible(true);
add(new Button("Hide Collapse Tool", new SelectionListener<ComponentEvent>(){
public void componentSelected(ComponentEvent ce) {
setHideCollapseTool(true);
}
}));

add(new Button("Show Collapse Tool", new SelectionListener<ComponentEvent>(){
public void componentSelected(ComponentEvent ce) {
setHideCollapseTool(false);
}
}));
}

public void onModuleLoad() {
final Viewport viewport = new Viewport();
viewport.setLayout(new FitLayout());
viewport.add(this);
RootPanel.get().add(viewport);
}

}

darrellmeyer
9 Sep 2008, 7:26 AM
Fixed in SVN.