             y = Math.max(0, (Math.min(appHeight, parentHeight) - popUp.height) / 2);
             
             pt = new Point(clippingOffset.x, clippingOffset.y);
-            pt = o.parent.localToGlobal(pt);
+            pt = popUpParent.localToGlobal(pt);
             pt = popUp.parent.globalToLocal(pt);
             popUp.move(Math.round(x) + pt.x, Math.round(y) + pt.y);
         }

            IInvalidating(popUp).validateNow();

        const o:PopUpData = findPopupInfoByOwner(popUp);
        if (o && o.parent)
        {
            var systemManager:ISystemManager = o.systemManager;
            var x:Number;

            }   
            else
            {          
                parentWidth = popUpParent.width;
                parentHeight = popUpParent.height;
            }

            // The appWidth may smaller than parentWidth if the application is
