fix context menu should always be shown in the visible area

[``* `#15168` fix context menu should always be shown in the visible area``](http://www.openproject.org/work_packages/15168)