Headermenu: Change header dropdown position if it would otherwise be rendered outside its container.

This PR does some simple math so that a header dropdown menu won't escape the container. Previously, if a user clicks the right-most column header menu it would be rendered to the right and thus outside the grid boundaries.