mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Update E_showMenu_Q3.js
Recheck string wrapping after font change.
This commit is contained in:
parent
b01e9d814a
commit
2854fc15b3
@ -103,7 +103,10 @@
|
||||
pad += 16;
|
||||
}
|
||||
var l = g.wrapString(keys[idx],r.w-pad);
|
||||
if (l.length>1) g.setFont("6x15");
|
||||
if (l.length>1) {
|
||||
g.setFont("6x15");
|
||||
l = g.wrapString(keys[idx],r.w-pad);
|
||||
}
|
||||
g.setFontAlign(-1,0).drawString(l.join("\n"), r.x+12, r.y+H/2);
|
||||
},
|
||||
select : function(idx) {
|
||||
@ -129,4 +132,4 @@
|
||||
}
|
||||
show();
|
||||
return l;
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user