Rewrite popup tail direction calculation
Position tail along the popup side so that it points to the center of the target element
Merge pull request #311 from yandex-ui/calculate-popup-tail-direction

Исправить вычисление направления хвостика