Fixed an issue with the width style being cleared from the dialog.