1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    11
    Vote Rating
    0
    chazzz2473 is on a distinguished road

      0  

    Default 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

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    you need to call

    Code:
      
        borderLayout.collapse(LayoutRegion.SOUTH);
    after adding that region to the layout.

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    11
    Vote Rating
    0
    chazzz2473 is on a distinguished road

      0  

    Default


    Thanks a lot, I had no idea you could call methods on the Layout Items (BorderLayout etc...)
    It works fine, thank you !

Similar Threads

  1. Replace a ContentPanel in a BorderLayout
    By Stefan.Baehring in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 22 Sep 2010, 8:31 AM
  2. BorderLayout and ContentPanel improvements
    By DanWhite in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 22 Sep 2010, 4:18 AM
  3. moving contentPanel from center borderlayout region to west borderlayout region
    By qwerty_qwerty in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 29 May 2008, 10:27 AM
  4. About setup Borderlayout and ContentPanel?
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 19 Dec 2006, 5:34 PM
  5. BorderLayout Contentpanel
    By pomata in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 6 Dec 2006, 7:29 PM

Thread Participants: 1