     			
     			if (contentGroupHeight < contentGroup.minHeight)
     				contentGroupHeight = contentGroup.minHeight;
-    			
+                
+                contentGroup.setLayoutBoundsSize(unscaledWidth, contentGroupHeight);
                 contentGroup.setLayoutBoundsPosition(0, top);
-                contentGroup.setLayoutBoundsSize(unscaledWidth, contentGroupHeight);
     		}
         }
     }

            
            if (contentGroup.includeInLayout)
            {
                contentGroup.setLayoutBoundsPosition(0, 0);
                contentGroup.setLayoutBoundsSize(unscaledWidth, unscaledHeight);
            }
        }
        else

        if (tabBar.includeInLayout)
        {
            tabBar.alpha = .5;
            componentHeight = tabBar.getPreferredBoundsHeight();
            tabBar.setLayoutBoundsSize(unscaledWidth, componentHeight);
            tabBar.setLayoutBoundsPosition(0, top);
            
