close #937 Adjust content height to window size