I would like my mdframed boxes from MyEnvironment to have a minimum total (title+body) height. The height can be greater (if the content warrants it), but not smaller than a certain size.
I can probably hack up a solution by
- Typesetting the
mdframedinto a\savebox, - Measuring it, and
- Re-typsetting it with an appropriate
\vspaceinserted,
but wondering if there is a less hackish way to accomplish this.
The MWE produces the following, but the desired output would have blank space after the content body so that the height is the value set in \MinimumHeight.

Since the last box height is already greater than \MinimumHeight is should not be changed.
Notes:
- The minimum height is a fixed constant known before compile time.
References:
- This seems related: Fix the height/length of a minipage, but not quite what I desire.
Code:
\documentclass{article}
\usepackage{xcolor}
\usepackage{environ}
\usepackage{mdframed}
\usepackage{lipsum}
\newcommand*{\MinimumHeight}{5.0cm}%
\NewEnviron{MyEnvironment}[1][]{%
\begin{mdframed}[
frametitlebackgroundcolor=brown!25,
frametitlerulecolor=blue,
frametitlerulewidth=1.0pt,
backgroundcolor=yellow!25,
#1
]
\BODY
\end{mdframed}
}
\begin{document}
\begin{MyEnvironment}[frametitle={Short Title}]
Some text for first paragraph.
Some more text for other paragraphs.
\end{MyEnvironment}
\begin{MyEnvironment}[frametitle={Some much longer title that takes up more than one line in the title frame}]
Some text for first paragraph.
\end{MyEnvironment}
\begin{MyEnvironment}[frametitle={Title of frame with much text}]
\lipsum[1]
\end{MyEnvironment}
\end{document}



tabular(or even aminipage). One problem with this current solution is that it has changed the paragraph indentation -- see how the text changes in the first example in your MWE if you comment out the\begin{tabular}and\end{tabular}. Now each of these issues can be adjusted but I don't know if there are other issues lurking that will need correction in the future. Perhaps I am just being too paranoid. – Peter Grill Jul 27 '13 at 17:22\fboxseplike lengths that make the box bigger than the text itself. I now placed a\ruleat the top of the page to realize I needed 18pt worth of adjustment to the MinimumHeight. – Steven B. Segletes Jul 27 '13 at 17:42\baselineskip(which is12pt), so not sure if it is just1.5*\baselineskip, or\baselineskip + <some_lengths>where<some_lengths>add up to6pt. – Peter Grill Jul 27 '13 at 18:46