More actions
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'; | ||
} | } | ||