Set the modal width first so that the height can adjust for the width