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

			amt -= move;

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

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

