 	{
 		if (super.direction != value)
 		{
+            // Direction has changed so we reset the last child's
+            // percentWidth/percentHeight setting. Note that
+            // we call this before assigning the new direction value
+            // as resetStrechedChild() depends on the direction.
+            resetStretchedChild();
+
 			super.direction = value;
 
 			// Need to invalidate all our dividers


	/**
	 *  @private
	 *  Algorithm employed pre-layout to ensure that 
	 *  we don't leave any dangling space and to ensure
	 *  that only explicit min/max values are honored.

import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Point;

import mx.containers.dividedBoxClasses.BoxDivider;
import mx.core.EdgeMetrics;
import mx.core.IFlexDisplayObject;
