Results 1 to 5 of 5

Thread: How to get parent/container size?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default How to get parent/container size?

    is it possible to get parent/container size so that children's size can be adjusted accordingly?

    Thanks

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    You should use the GXT layoutsystem for this. The layoutsystem works from top to bottom and so the parent always sizes the children.

    What do you want to do exactly?

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    I have a viewport and using border layout. In the center panel, I have to show tabs and the some content in each of the tab.
    The problem that I am facing is... I want content in each of the tab to occupy all of the space (just like in the case of viewport ) but somehow I am not able to get it working. So I thought if I know the parent's size I will set the sizes accordingly

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    So you have a container in the center region and add a TabPanel into this center container? Try to give the container in the center region a fitlayout.

  5. #5
    Ext User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    thanks, I will give it a try.

Similar Threads

  1. How to get parent container of a menu
    By trojan in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 Sep 2011, 11:48 AM
  2. How to access parent container of a toolbar button
    By nightwatch in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Dec 2008, 12:58 PM
  3. How to get reference to parent container?
    By pic_Nick in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 8 Nov 2007, 1:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •