Frontend: Fixing #152; context menu can be offscreen