Question about dialog width

Question about dialog width

I found dialog option width: auto option has been removed in ver1.8 . Is there any workarround to do that?