Extended Out of Window Detection

When the viewport is physically too small to hold the options without going outside the viewport the max-height is changed to accommodate.
Tested in all modern browsers and IE 10,9,8 and 7