org-fit-window-to-buffer

org-fit-window-to-buffer is a compiled Lisp function in `org-compat.el'.

(org-fit-window-to-buffer &optional WINDOW MAX-HEIGHT MIN-HEIGHT SHRINK-ONLY)

Fit WINDOW to the buffer, but only if it is not a side-by-side window.
WINDOW defaults to the selected window. MAX-HEIGHT and MIN-HEIGHT are
passed through to `fit-window-to-buffer'. If SHRINK-ONLY is set, call
`shrink-window-if-larger-than-buffer' instead, the height limit is
ignored in this case.