Fix grid context menu position for Firefox

Firefox does not have offsetX. pageX is absolute and lets the menu jump all over the place.

Solution based on http://stackoverflow.com/a/21780843/2127439