Report question

Question: with jquery UI dialog, is there anyway to have a max height and use 'auto' if its smaller