 		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;
 

			// without concern.
			if (n > 0)
			{
				child = IUIComponent(getChildAt(n - 1));

				if (child.includeInLayout)
				{

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

				if (!child.includeInLayout)
					continue;
