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
m added ratio correction for tooltip width
mNo edit summary
Line 156: Line 156:
if(frameObj.offsetWidth < frameObj.offsetHeight)
if(frameObj.offsetWidth < frameObj.offsetHeight)
{
{
frameObj.style.width = (_ratioWidth / (_ratioWidth + _ratioHeight)) * (frameObj.offsetWidth + frameObj.offsetHeight);
frameObj.style.width = (_ratioWidth / (_ratioWidth + _ratioHeight)) * (frameObj.offsetWidth + frameObj.offsetHeight) + 'px';
}
}