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

            
            // Make sure viewPort and enabled state are recalculated
            invalidateViewPortFlag = true;
            invalidateProperties();
        }
    }

                ancestor.removeEventListener(ResizeEvent.RESIZE, ancestor_resizeHandler);
                ancestor.removeEventListener(FlexEvent.SHOW, ancestor_showHandler);
                ancestor.removeEventListener(FlexEvent.HIDE, ancestor_hideHandler);
                ancestor.removeEventListener(PopUpEvent.CLOSE, ancestor_closeHandler);
                ancestor.removeEventListener(PopUpEvent.OPEN, ancestor_openHandler);
            }
        }
        
