PDA

View Full Version : BorderLayout methods collapse() and expand() are not working programatically



pramod.gampa
9 Feb 2012, 2:39 AM
Hi Team,

I am using gwt version 2.4.0 and gxt version 2.2.5. I am facing a strange problem with BorderLayout.
Please go through the following scenario:
Assume, I have
BorderLayout obj= new BorderLayout();

Assuem i have set all regions with respective data. EAST region contains ContentPanel.

The following code is not working:
obj.collapse(LayoutRegion.EAST);

neither it is throwing any exception nor performing collapse event.

Please help me in this regards.

Regards,
Pramod

sven
9 Feb 2012, 2:47 AM
http://www.sencha.com/forum/showthread.php?148203-GXT-2.2.5-and-Border-Layout-Collapse-problem-simple-code-included&highlight=borderlayout

S (http://www.sencha.com/forum/showthread.php?148203-GXT-2.2.5-and-Border-Layout-Collapse-problem-simple-code-included&highlight=borderlayout)ounds like this post. Have you tried the provided patch?

pramod.gampa
9 Feb 2012, 4:04 AM
Hi Sven,

Thank you for your quick reply.
I have already gone through the link you have provided. But I didn't understand where I need to paste that code. Can you please tell me, where I have to paste the patch.

Regards,
Pramod

smiletolead
9 Feb 2012, 4:20 AM
Hi Pramod
Please provide the working sample so that people can run it and try to help you

Regards,
Ganesh

smiletolead
9 Feb 2012, 4:42 AM
I find collapse working. See the class com.extjs.gxt.samples.client.examples.layouts.BorderLayoutExample in the GXT Examples. Added this line at the end of the method #onRender()


layout.collapse(LayoutRegion.SOUTH);

smiletolead
9 Feb 2012, 8:47 AM
It was not working actually. Instead of collapsing, it is not displaying the panel at all! Looks like GXT bug.