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:
parent
3048255235
commit
97820530b1
@ -646,7 +646,7 @@ f_dialog_infobox_size()
|
|||||||
# Xdialog(1)).
|
# Xdialog(1)).
|
||||||
#
|
#
|
||||||
if [ ! "$USE_XDIALOG" ]; then
|
if [ ! "$USE_XDIALOG" ]; then
|
||||||
__n=$(( ${#__hline} + 10 ))
|
__n=$(( ${#__hline} + 12 ))
|
||||||
[ $__n -gt $__width ] && __width=$__n
|
[ $__n -gt $__width ] && __width=$__n
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user