Adjust TimerDialog's size to content's size