     }
     
     /**
-     * @copy mx.core.ILayoutDirection#invalidateLayoutDirection()  
+     * @inheritDoc 
      */
     public function invalidateLayoutDirection():void
     {
-        const parentElt:ILayoutDirection = parent as ILayoutDirection;
+        const parentElt:IVisualElement = parent as IVisualElement;
         if (!parentElt)
             return;
         

import mx.core.IFlexModule;
import mx.core.IFlexModuleFactory;
import mx.core.IInvalidating;
import mx.core.ILayoutDirection;
import mx.core.ILayoutElement;
import mx.core.IStateClient;
import mx.core.IUIComponent;

	//----------------------------------
	
	private var _layoutDirection:String = "inherit";
    
    /**
     *  @inheritDoc
     */
	public function get layoutDirection():String
	{
        if (_layoutDirection != "inherit")
            return _layoutDirection;
        
        const parentElt:IVisualElement = parent as IVisualElement;
        return (parentElt) ? parentElt.layoutDirection : "ltr";
	}
	
    /**
     *  @private
     */
	public function set layoutDirection(value:String):void
	{
		if (_layoutDirection == value)
