Attempt to fix tooltip positioning error when appendToBody is true

use offset function instead position function when appednToBody is set to true, related to issue #388