Attempt to fix tooltip positioning error when appendToBody is set to true

use offset function instead position function when appednToBody is set to true