Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
fixing bug on tooltip positioning algorithm
mNo edit summary
Line 157: Line 157:
if(frameObj.offsetWidth > maxTooltipWidth)
if(frameObj.offsetWidth > maxTooltipWidth)
{
{
frameObj.style.width = maxTooltipWidth;
frameObj.style.width = maxTooltipWidth + 'px';
frameObj.style.left = ((x - parentPos.x) + _posCorrectionX) + 'px';
frameObj.style.left = ((x - parentPos.x) + _posCorrectionX) + 'px';
}else{
}else{