Fix for issue #1205 toElementEdge

Function now considers the current scroll position while attempting to
compute the elements relative position.
Fix for issue #1205 toElementEdge

Updated the toElementEdge method to consider the target elements scroll
position while calculating relative position.