Revert "ensure maximized -> ensure height"

This reverts commit 4fe12129998f1fd8aad9f47dad54121a10eb877e.