Fixed iOS Safari height bug with a hackish javascript solution