 
 		for (i = 0; i < n; i++)
 		{
-			child = IUIComponent(getChildAt(i));
+			child = getLayoutChildAt(i);
 
 			if (!child.includeInLayout)
 				continue;

			var delta:Number = Math.ceil((100 - totalPerc) / percCount);
			for (i = 0; i < n; i++)
			{
				child = IUIComponent(getChildAt(i));

				if (!child.includeInLayout)
					continue;

			amt -= move;

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