auto height with maxHeight for dialog form