|ZUTI|
23 Sep 2011, 12:07 AM
Hey.
With GXT 2.2.5 I have annoying problem. Best to show the simple code:
public class AATestWindow extends Window
{
public AATestWindow()
{
setSize(400, 200);
BorderLayout layout = new BorderLayout();
setLayout(layout);
ContentPanel cntntpnlCenter = new ContentPanel();
cntntpnlCenter.setHeading("Center");
add(cntntpnlCenter, new BorderLayoutData(LayoutRegion.CENTER));
ContentPanel cntntpnlSouth = new ContentPanel();
cntntpnlSouth.setHeading("South");
cntntpnlSouth.setCollapsible(true);
add(cntntpnlSouth, new BorderLayoutData(LayoutRegion.SOUTH, 50.0f));
layout.collapse(LayoutRegion.SOUTH);
}
}
The point is in the last line where I collapse south region so that when the application is started that region is collapsed. Well, with 2.2.5 GXT the region is also invisible, not only collapsed. Not sure what exactly the problem could be but with old release, the above code worked OK.
Is there a new way to implement this? Calling collapse() on south panel does not do what I need to be done.
Thanks.
With GXT 2.2.5 I have annoying problem. Best to show the simple code:
public class AATestWindow extends Window
{
public AATestWindow()
{
setSize(400, 200);
BorderLayout layout = new BorderLayout();
setLayout(layout);
ContentPanel cntntpnlCenter = new ContentPanel();
cntntpnlCenter.setHeading("Center");
add(cntntpnlCenter, new BorderLayoutData(LayoutRegion.CENTER));
ContentPanel cntntpnlSouth = new ContentPanel();
cntntpnlSouth.setHeading("South");
cntntpnlSouth.setCollapsible(true);
add(cntntpnlSouth, new BorderLayoutData(LayoutRegion.SOUTH, 50.0f));
layout.collapse(LayoutRegion.SOUTH);
}
}
The point is in the last line where I collapse south region so that when the application is started that region is collapsed. Well, with 2.2.5 GXT the region is also invisible, not only collapsed. Not sure what exactly the problem could be but with old release, the above code worked OK.
Is there a new way to implement this? Calling collapse() on south panel does not do what I need to be done.
Thanks.