bug fix for left and top offset when offset parent is body