preferencesDialog mac layout fix