UI Dialog / Grow / Shrink to new content.. Possible?

UI Dialog / Grow / Shrink to new content.. Possible?


Is it possible to grow or shrink the dialog using the UI effects? If
so, anybody has the right code for it?