         var screen:Rectangle = sm.getVisibleApplicationRect();
 
         if (show)
-        {          
+        {
             if (_popUp.parent == null)
             {
                 PopUpManager.addPopUp(_popUp, this, false);

            }
            else
                PopUpManager.bringToFront(_popUp);

            if (point.y + _popUp.height > screen.bottom && 
                point.y > (screen.top + height + _popUp.height))
            { 
                // PopUp will go below the bottom of the stage

        if (getPopUp() == null)
            return;
        
        if (_popUp is ILayoutDirectionElement)
        {
            ILayoutDirectionElement(_popUp).layoutDirection = layoutDirection;
        }
        
        //Show or hide the popup
        var initY:Number;
