Dont believe this exists "natively"- you may be able to create a variable of "headerHeight" and set it to the size if your field would have 1 line... for example "200" then do something like "If (fieldICareAbout.length > 20) headerHeight += 20
Then set your header height to the variable + "px"
(Using BFO/Freemarker variables of course)