Revert "Revert "ensure maximized -> ensure height""

This reverts commit a676fde352e9740a682a5801c119fbe37eb25b76.