Better code to set the minimum size of the dialog box