 		var deltaMinBelow:Number = 0;
 		var deltaMaxBelow:Number = 0;
 		
-		var n:int = numChildren;
+        var n:int = numLayoutChildren;
 		var i:int;
 		var child:ChildSizeInfo;
 
 		if (at < 0)
 			return;
 			
-		for (i = at; i >= 0; i = (i > 0) ? i - 1 : -1)
+        for (i = at; i >= 0; i--)
 		{	
 			child = ChildSizeInfo(oldChildSizes[i]);
 			

			return;

		var vertical:Boolean = isVertical();
		var n:int = numChildren;
		var k:int = activeDividerIndex;
		var smallest:Number = oldChildSizes[n].size -
			Math.abs(dragDelta); // smallest possible child size

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

            // Find the previous child included in the layout
            do
            {
                 child = IUIComponent(getChildAt(curChildIndex--));
            }
            while (!child.includeInLayout);

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