Adjust size of the preference dialog