calculating offset parent
making getoffsetparent work
offset positioning