5 votes
closed
Hovermenu doesn't initialize properly if mouse is over it at load time

Description

 
http://forums.asp.net/1376836/ShowThread.aspx#1376836

File Attachments


No files are attached


Closed Jan 10 2007 at 6:36 PM  by shawnburke

Comments

most recent at top (show oldest at top)
wrote Jan 10 2007 at 6:36 PM

I'm unable to repro this on the sample site (either on the website or in the project).  Tried with IE7 and FF, everything seems to work fine.

 

Posted a call for a repro to the thread referenced in the description.  Will reactivate/investigate if I missed something.


wrote Aug 22 2006 at 2:17 AM

Problem is in the underlying HoverBehavior.   This code:

 

function unHoverHandler() {

_hoverCount--;

if (_hoverCount == 0) {

this.unhover.invoke(this, Sys.EventArgs.Empty);

}

}

 

Should be:

 

function unHoverHandler() {

_hoverCount--;

if (_hoverCount <= 0) {

_hoverCount = 0;

this.unhover.invoke(this, Sys.EventArgs.Empty);

}

}

 

Problem is dealing with this externally.  May need to snap HoverBehavior, but I'd rather not.


Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987