Prevent modal screen overflow

fixes #288

ok @scottdraves @anglee let me know.. i think I did not miss any of the file dialogs