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
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.