Made some slight changes to setListHeight, added window resize event.