Tooltip placement logic adjusted

Tooltip placement logic adjusted to consider multiple nested parent
elements and scroll offsets
Merge branch 'tooltip-position' into development