More actions
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{ | ||