i have a module based on TitleWindow that overrides the move function to keep it from being dragged off screen. it works in 99% of the cases but i've got some users who seem to have found that 1% where it fails.

the module has two states, an initial query state & a data display state. the data display state changes the size of the window quite a bit.

if the user moves the window nearly off screen while it is loading data, it can "jump" enough to be knocked off the screen & can't be dragged back.

you can see a screen capture here:
===================================
https://dl.dropboxusercontent.com/u/130830/flex/ohMan.jpg

i suppose can workaround this with some kind of hail mary event but any ideas as to why this is happening?


particulars:
===================================
flex 4.13
chrome & IE browsers
player version 22.0.0.209 & below


code:
===================================
private static const MIN_VISIBLE:int = 50;
                
public override function move(x:Number, y:Number):void {
        var maxX:Number=stage.stageWidth-MIN_VISIBLE;
        var maxY:Number=stage.stageHeight-MIN_VISIBLE;
                        
        if (x < 0)
                x=0;
        else if (x > maxX)
                x=maxX;
                        
        if (y < 0)
                y=0;
        else if (y > maxY)
                y=maxY;
                        
        super.move(x,y);
}

Reply via email to