don't let menu overflow outside of document bounds - prevent scrolling