ReplaceDialog resizes automatically for the given file.