Quote:
Originally Posted by censat
In you skin.css lower the value on the line that says "line-height:18px;"
|
Thanks. But this was something different. If you resize browser window to the size (same as 800x600 resolution) and where is not enouth space for dropdown to the bottom it's going up by script logic. I just changed the logic to go up only half way in this case. Works nicely. Now it's going down if there is enouth space and align itself at the middle if space is limited below.
Code:
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+menuobj.contentheight/2+eventY-menuobj.contentheight : ns6? window.pageYOffset+menuobj.contentheight/2+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}
I'm starting to like JavaScript. Will fire script guy tomorrow and write it myself
