 	{
 		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

						child.percentHeight = 100;
					else
						child.percentWidth = 100;
                    stretchedChild = child;
                    break;
				}
			}

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

        // Clear the cached values so that we do another
        // measurement pass.
        dbMinWidth = NaN;
