2 Nov 2010 1:23 PM #1
How to get parent/container size?
is it possible to get parent/container size so that children's size can be adjusted accordingly?
2 Nov 2010 2:08 PM #2
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?
2 Nov 2010 2:18 PM #3
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
2 Nov 2010 2:29 PM #4
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.
2 Nov 2010 2:47 PM #5
By trojan in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 27 Sep 2011, 11:48 AM
By nightwatch in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 11 Dec 2008, 12:58 PM
By pic_Nick in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 8 Nov 2007, 1:08 AM