Corrected rectangle position inside popup when direction is 'down' or 'right'

https://github.com/DmitryBaranovskiy/g.raphael/pull/199