 		// No flexible children, so we make the last one 100%.
 		if (totalPerc == 0 && percCount == 0)
 		{
-			// Everyone is fixed and we can give 100% to the last one 
-			// without concern.
-			if (n > 0)
+            // Everyone is fixed and we can give 100% to the last
+            // included in layout one without concern.
+            for (i = n-1; i >= 0; i--)
 			{
-				child = getLayoutChildAt(n - 1);
-
+                child = UIComponent(getChildAt(i));
 				if (child.includeInLayout)
 				{
 					if (vertical)
 						child.percentHeight = 100;
 					else
 						child.percentWidth = 100;
+                    stretchedChild = child;
+                    break;
 				}
 			}
 		}


		else if (!child.includeInLayout && --numLayoutChildren > 0)
			dividerLayer.removeChild(getDividerAt(numLayoutChildren - 1));
	}
	
}

		super.updateDisplayList(unscaledWidth, unscaledHeight);
		
		// Lay out the dividers.
        if (!dividerLayer)
           return;

			var vm:EdgeMetrics = viewMetrics;

			dividerLayer.x = vm.left;
			dividerLayer.y = vm.top;

        var prevChild:IUIComponent = null;
        var dividerIndex:int = 0;
        n = numChildren;
			for (i = 0; i < n; i++)
			{
            child = UIComponent(getChildAt(i));
            if (child.includeInLayout)
            {
                if (prevChild)
                {
                    layoutDivider(dividerIndex, unscaledWidth, unscaledHeight, prevChild, child);
                    dividerIndex++;
                }
                prevChild = child;
			}
		}
	}
