Replace dialog(1) with bsddialog(1). Delete f_dialog_checklist_size() because it is not suitable for bsddialog, instead use bsddialog(3) autosize. The checklist could overlay the backtitle "FreeBSD Installer" with little screen, the problem is fixed in upstream {*}, it will be availble in the next import or now if somebody will require this feature.
{*}
lib : add conf.auto_topmargin and conf.auto_downmargin
utility: fix: overlay backtitle and overlay shadow below