prevent modal dialog from exceeding window height
also set max-width; adjust on resize
Merge pull request #6665 from adobe/randy/issue-6395

Prevent modal dialog from exceeding window height