Fix dialog autosizing to accomodate for hline

dialog will conditionally ignore the --hline option if not enough space
was available to accomodate for the text width. Traditionally the width
of the widget had to be 10 wider than the text. Recent updates to dialog
have changed the requirement to be at least 12 wider than the hline text
else the hline text is not rendered at the bottom of the widget.

Sponsored by:	Smule, Inc.
This commit is contained in:
Devin Teske 2018-10-28 19:29:07 +00:00
parent 3048255235
commit 97820530b1

View File

@ -646,7 +646,7 @@ f_dialog_infobox_size()
# Xdialog(1)).
#
if [ ! "$USE_XDIALOG" ]; then
__n=$(( ${#__hline} + 10 ))
__n=$(( ${#__hline} + 12 ))
[ $__n -gt $__width ] && __width=$__n
fi