paulkinzett / toolbar

A tooltip style toolbar jQuery plugin
http://paulkinzett.github.com/toolbar/
MIT License
2.3k stars 321 forks source link

Calculate position with .outerWidth() instead of .width() #17

Closed skyzyx closed 10 years ago

skyzyx commented 11 years ago

To properly account for padding on the trigger elements, you get far more consistent results using .outerWidth() and .outerHeight() instead of .width() and .height().

paulkinzett commented 11 years ago

Thanks for the advice. I had made some changes to the position calculations to use the outerWidth and outerHeight. Still a few small issues but is more consistent as you said.