Previously the file selector would potentially display off-screen, making for confusing UX. Closes #10942.