|
carrie -> RE: Tooltip and overflow (7/19/2007 13:02:16)
|
Tailslide, I think it's within this function that this problem will be resolved: function positionTip(evt) { if (!tipFollowMouse) { mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft; mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop; } // tooltip width and height var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth; var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight; // document area in view (subtract scrollbar width for ns) var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft; var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop; // check mouse position against tip and window dimensions // and position the tooltip if ((mouseX+offX+tpWd)>winWd) tipcss.left = mouseX-(tpWd+offX)+"px"; else tipcss.left = mouseX+offX+"px"; if ((mouseY+offY+tpHt)>winHt) tipcss.top = winHt-(tpHt+offY)+"px"; else tipcss.top = mouseY+offY+"px"; if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100); } The above function has to do with tooltip positioning. All other browsers show the tooltip normally. In Firefox on windows, if you mouseover the rightmost image on that page, the tooltip will display on the left side of the mouse instead of going 'under' the scrollbar. I think if I can adjust this function, I can adjust the position of the tooltip. That may work, but then what about the top right images outside of the overflow container. Those are going under the scrollbar as well. Maybe it will work for those too. What do you think? Carrie
|
|
|
|