Scale to screen size

This commit is contained in:
Bob Mottram 2018-03-18 14:33:00 +00:00
parent 2d6d29487c
commit 8cc85edea8
1 changed files with 4 additions and 1 deletions

View File

@ -304,8 +304,11 @@ function show_domains {
fi
fi
width=$(tput cols)
height=$(tput lines)
# shellcheck disable=SC2068
dialog --backtitle $"Freedombone Control Panel" --title $"Domains" --menu $"You can use shift+cursors to select text" 28 100 28 "${W[@]}" 3>&2 2>&1 1>&3
dialog --backtitle $"Freedombone Control Panel" --title $"Domains" --menu $"" $((height-5)) $((width-5)) $((height-5)) "${W[@]}" 3>&2 2>&1 1>&3
}
function show_domains_old {