Avoid showing context menu off screen in IE8

Change-Id: I75bf1d41b518e4b098ae35727b89b7ba310f0582