 		var n:int = numChildren;
 		for (var i:int = 0; i < n; i++)
 		{
-			var child:IUIComponent = IUIComponent(getChildAt(i));
+			var child:IUIComponent = getLayoutChildAt(i);
 		
 			var sz:Number = vertical ? child.height : child.width;
 

			newSize = size.size + move;
			amt += move;

			child = IUIComponent(getChildAt(i));
			childSize = (newSize / smallest) * 100;
			
			if (vertical)

			amt -= move;

			// Adjust the child size.
			child = getLayoutChildAt(i);
			childSize = (newSize / smallest) * 100;
			
			if (vertical)
