         // reset state
         invalidatePositionFlag = false;
         arrowDirectionAdjusted = false;
+        stageOrientationChangedFlag = false;
 
         // Add to PopUpManager, calls updatePopUpPosition(), and change state
         super.open(owner, modal);

        
        if (systemManagerParent)
            systemManagerParent.removeEventListener(Event.RESIZE, systemManager_resizeHandler);
        
        super.close(commit, data);
    }

     */
    private function systemManager_resizeHandler(event:Event):void
    {
       	// Remove explicit settings if due to Resize effect
       	softKeyboardEffectResetExplicitSize();
        
        // Screen resize might require a new arrow direction and callout position
        invalidatePosition();
        
      	if (!isSoftKeyboardEffectActive)
        {
            // Force validation and use new screen size only if the keyboard
            // effect is not active. The stage dimensions may be invalid while 
            // the soft keyboard is active. See SDK-31860.
            validateNow();
        }
     }
    
    /**
    *  @private
    */
    private function stage_orientationChangeHandler(event:StageOrientationEvent):void
    {
        //set flag to use in updateDisplayList
        //for queuing call to updatePopUpPosition
        stageOrientationChangedFlag = true;
    }
  }
}
