-
9 Feb 2012 2:39 AM #1
BorderLayout methods collapse() and expand() are not working programatically
BorderLayout methods collapse() and expand() are not working programatically
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
-
9 Feb 2012 2:47 AM #2
http://www.sencha.com/forum/showthread.php?148203-GXT-2.2.5-and-Border-Layout-Collapse-problem-simple-code-included&highlight=borderlayout
Sounds like this post. Have you tried the provided patch?
-
9 Feb 2012 4:04 AM #3
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
-
9 Feb 2012 4:20 AM #4
Hi Pramod
Please provide the working sample so that people can run it and try to help you
Regards,
Ganesh
-
9 Feb 2012 4:42 AM #5
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()
Code:layout.collapse(LayoutRegion.SOUTH);
-
9 Feb 2012 8:47 AM #6
It was not working actually. Instead of collapsing, it is not displaying the panel at all! Looks like GXT bug.


Reply With Quote