auto detect if grid height is auto