]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Calculate proper size of menu list dialog
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:42:10 +0000 (02:42 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:42:10 +0000 (02:42 +0000)
usr.sbin/bsdinstall/scripts/wlanconfig

index 03b30cd4caaed958e1ed3e01be6e4326b8464f95..f2829d7d935bb7d215e411612c5700531acdc64c 100755 (executable)
@@ -224,6 +224,8 @@ while :; do
        f_dialog_title "Network Selection"
        prompt="Select a wireless network to connect to."
        menu_list=$( echo $NETWORKS | tr '\n' ' ' )
+       f_dialog_menu_size height width rows "$DIALOG_TITLE" \
+               "$DIALOG_BACKTITLE" "$prompt" "" $menu_list
        NETWORK=$( eval $DIALOG \
                --title \"\$DIALOG_TITLE\"         \
                --backtitle \"\$DIALOG_BACKTITLE\" \