fix menu glitches

master
Daniel Napora 2021-01-15 11:57:29 +01:00
parent 5f2a3964ce
commit 908f6a672c
1 changed files with 3 additions and 2 deletions

View File

@ -584,7 +584,7 @@ case $LANG in
es*) CANCEL="Cancelar";; es*) CANCEL="Cancelar";;
*) CANCEL="Cancel";; *) CANCEL="Cancel";;
esac esac
jgtools_padding=${jgtools_padding:-0}
JGWIDTH=$(expr $jgtools_padding + "348" + $jgtools_padding) JGWIDTH=$(expr $jgtools_padding + "348" + $jgtools_padding)
MENU_PADDING_TOP=$(expr $jgtools_padding + 221) MENU_PADDING_TOP=$(expr $jgtools_padding + 221)
TABS="250" TABS="250"
@ -656,6 +656,7 @@ case $LANG in
CANCEL="Cancel" CANCEL="Cancel"
;; ;;
esac esac
jgtools_padding=${jgtools_padding:-0}
JGWIDTH=$(expr $jgtools_padding + "348" + $jgtools_padding) JGWIDTH=$(expr $jgtools_padding + "348" + $jgtools_padding)
MENU_PADDING_TOP=$(expr $jgtools_padding + 221) MENU_PADDING_TOP=$(expr $jgtools_padding + 221)
MENU_HALIGN="center" MENU_HALIGN="center"
@ -721,7 +722,7 @@ MENU_ITEMS=$(mktemp)
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
POSITION_MODE=${1:-pointer} POSITION_MODE=${1:-pointer}
HIDE_BACK_ITEMS=1 HIDE_BACK_ITEMS=1
MENU_PADDING_TOP=${jgtools_padding} MENU_PADDING_TOP=${jgtools_padding:-0}
TABS="90" TABS="90"
[ $jgmenu_use_icons == false ] && jgmenu_icon_size=0 [ $jgmenu_use_icons == false ] && jgmenu_icon_size=0