-
10 Oct 2010 11:41 PM #1
BorderLayout and ContentPanel
BorderLayout and ContentPanel
Hello,
I have a simple problem, yet I am unable to find a simple answer...
In my app, I have a LayoutContainer set with a BorderLayout.
On South, I have a ContentPanel, with it's height set to 200 in the borderLayoutData.
I want to be able to collapse the ContentPanel, so i set the borderLayoutData to be collapsible.
So far, everything works fine.
My problem is that i want the ContentPanel to be collapsed by default, it is currently expanded. I did not found any way to set the Panel collapsed by defaut.
Any idea/help to do this would be really appreciated,
Chazzz
-
11 Oct 2010 2:18 AM #2
you need to call
after adding that region to the layout.Code:borderLayout.collapse(LayoutRegion.SOUTH);
-
11 Oct 2010 2:29 AM #3
Thanks a lot, I had no idea you could call methods on the Layout Items (BorderLayout etc...)
It works fine, thank you !
Similar Threads
-
Replace a ContentPanel in a BorderLayout
By Stefan.Baehring in forum Ext GWT: DiscussionReplies: 3Last Post: 22 Sep 2010, 8:31 AM -
BorderLayout and ContentPanel improvements
By DanWhite in forum Ext GWT: DiscussionReplies: 3Last Post: 22 Sep 2010, 4:18 AM -
moving contentPanel from center borderlayout region to west borderlayout region
By qwerty_qwerty in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 29 May 2008, 10:27 AM -
About setup Borderlayout and ContentPanel?
By franklt69 in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 19 Dec 2006, 5:34 PM -
BorderLayout Contentpanel
By pomata in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 6 Dec 2006, 7:29 PM


Reply With Quote