Add the function for getting vertical distance between two elements.

Signed-off-by: akhabibullina <ascii88@mail.ru>