 import spark.components.Application;
 import spark.core.IEditableText;
 import spark.core.ISoftKeyboardHintClient;
+import spark.events.PopUpEvent;
 import spark.events.TextOperationEvent;
 
 use namespace mx_internal;

                ancestor.removeEventListener(ResizeEvent.RESIZE, ancestor_resizeHandler);
                ancestor.removeEventListener(FlexEvent.SHOW, ancestor_showHandler);
                ancestor.removeEventListener(FlexEvent.HIDE, ancestor_hideHandler);
            }
        }
        

    {
        // Any change in ancestor geometry may affect the StageText's geometry.
        invalidateViewPortFlag = true;
        invalidateProperties();
    }
    
    private function ancestor_openHandler(event:PopUpEvent):void
    {
        ancestorsVisibleInvalidateFlag = true;
        invalidateViewPortFlag = true;
        
        invalidateProperties();
    }
    
