fix text overlapping text issue

pull/1223/head
Ronin0000 2022-01-05 15:35:57 -08:00 committed by GitHub
parent 73e3378d25
commit d546921177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ E.showMenu = function(items) {
g.setFontAlign(-1,-1);
var v = item.value;
v = loc.translate(""+v);
if(loc.translate(name).length >= 19-v.length && "object" == typeof item){
if(loc.translate(name).length >= 17-v.length && "object" == typeof item){
if (item.format) v=item.format(v);
g.drawString(loc.translate(name).substring(0, 12-v.length)+"...",x+3.7,iy+2.7);
}else{