1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    4
    Vote Rating
    0
    thenullpointer is on a distinguished road

      0  

    Default How to get parent/container size?

    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
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    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 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
    thenullpointer is on a distinguished road

      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
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    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


    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
    thenullpointer is on a distinguished road

      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

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar