John's fix for resize of dialog box