To properly account for padding on the trigger elements, you get far more consistent results using .outerWidth() and .outerHeight() instead of .width() and .height().
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.
To properly account for padding on the trigger elements, you get far more consistent results using
.outerWidth()
and.outerHeight()
instead of.width()
and.height()
.