Support for reaching top of the element.

- added "edge" parameter support (default to "bottom")