code: protected void calculateTabPosition()
  	{
  		boolean isHorizontal = tabPosition == ComponentPosition.TOP || tabPosition == ComponentPosition.BOTTOM;
  		UITab lastTab = null;
  
  		for (UITab tab : listTabs.keySet())
  		{
  			if (isHorizontal)
  			{
  				IPosition p = lastTab != null ? Position.rightOf(this, lastTab, spacing) : Position.of(offset, 0);
  				tab.setPosition(p);
  			}
  			else
  			{
  				IPosition p = lastTab != null ? Position.below(this, lastTab, spacing) : Position.of(0, offset);
  				tab.setPosition(p);
  			}
  			lastTab = tab;
  		}
  	}
docs: Calculates the {@link UITab} position.<br>
  Sets the width and height of this {@link UITabGroup}.