Why does my HTML Div container and content disappear in IE?

Missy Mellie

New member
I have a context menu that I created and the inner div and its contents disappear when the context menu is dragged partially off the side of the screen in IE. It does not happen in Firefox.

function(contextMenuContents, title, mouseDown)
{
if(mouseDown == null) mouseDown = "contextMenuMouseDown"
return '<div onmousedown="sysFunctions.'+mouseDown+'(event)" style="white-space: no-wrap;text-align:left;font-size:12px;display:block;background-image: url(images/contextMenuTitleBg.gif);background-repeat: repeat-x;font-family:helvetica;border-bottom:1px solid #bbb;padding:3px;position:relative;"><span style="cursor:pointer"><img title="Close" onclick="this.parentNode.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode.parentNode);sysFunctions.setContextMenuTarget(null)" src="images/cross.gif"/></span><span style="padding-left:3px;">'+title+'</span></div><div style="padding:15px;position:relative;">'+contextMenuContents+'</div>'
}

//I believe it has something to do with relative positioning...and I searched online for other people with the same problem, found a bunch, but didn't know how to implement any solutions into my code. Any ideaS? Thanks in advance!
 
Back
Top