dired-shrink-to-fit

dired-shrink-to-fit is a variable defined in `dired.el'.
Its value is
t

  • This variable is obsolete since 24.3;
    use the Customization interface to add a new rule to `display-buffer-alist' where condition regexp is "^ \*Marked Files\*$", action argument symbol is `window-height' and its value is nil.

Documentation:
Non-nil means Dired shrinks the display buffer to fit the marked files.