Position context menu at correct location

Hi Hoa,  This fixes issue about context menu location
Please take a look.

Fixes #835
review @dinhviethoa