Hi guys ,
Sometimes you will encounter a situation when you will have to click your popupButton twice .
So to overcome this behaviour
replace the following code in the sdk's PopUpButton code
private function removeFromStageHandler(event:Event):void
{
if(_popUp)
{
PopUpManager.removePopUp(_popUp);
_popUp = null
}
}
with
private function removeFromStageHandler(event:Event):void
{
if(_popUp)
{
PopUpManager.removePopUp(_popUp);
if(showingPopUp)
_popUp = null
}
}
All i have done is check if the Popup is showing up before setting to null .
If the popup is not showing up then dont set the _popUp to null ;
Subscribe to:
Post Comments (Atom)
1 comment:
On the popupbutton control. I have weird behaviour. WHne i click it it opens and then opens again. THis happens mostly in firefox. It is a kind of flicker. I tried to set that data provider to null before loading and set it to load on the click event. But the behaviour is still there. Any thoughts will be greatly appreciated.
Sebastian
Post a Comment