mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix an off-by-one error that was causing menus to look funny.
This commit is contained in:
parent
1c6d60de93
commit
3d5fedd33e
1 changed files with 1 additions and 1 deletions
|
|
@ -527,7 +527,7 @@ f_dialog_menu_constrain()
|
|||
: ${__min_rows:=0}
|
||||
fi
|
||||
|
||||
local __max_rows=$(( $__max_height_menu_constrain - 8 ))
|
||||
local __max_rows=$(( $__max_height_menu_constrain - 7 ))
|
||||
# If prompt_len is zero (no prompt), bump the max-rows by 1
|
||||
# Default assumption is (if no argument) that there's no prompt
|
||||
[ ${__prompt_len:-0} -gt 0 ] ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue