Add max height support instead of max lines