Modal Box Autowidth Fix

when a fixed-width dialog was opened before an auto-width dialog, the width of the previous dialog was used