[jQuery] Fix for Giva Labs linkselect plugin
We noticed an issue with the jquery.linkselect plugin (version 1.2.08)
today.
When the container width would cause it to be positioned off the the
screen it is repositioned incorrectly if there is no title element.
I fixed this in anchorTo function by instead adding the width of the
anchor if there is no title:
// Replace
pos.left = (pos.left - $container.outerWidth()) + $title.outerWidth();
// With
if($title.length)
{
pos.left = (pos.left - $container.outerWidth()) + $title.outerWidth
();
}
else
{
pos.left = (pos.left - $container.outerWidth()) + $anchor.outerWidth
();
}
Hope that helps someone out.
Cheers
Ollie
--
http://www.ollicle.com