Cycling74 / miraweb

MIT License
138 stars 14 forks source link

umenu: does not display leading zeros (0 / 0.) #218

Open benbrackenc74 opened 9 months ago

benbrackenc74 commented 9 months ago

Describe the bug If the first item in a umenu starts with "0", the 0 is not displayed in Mira if the item is in a mira.frame.

Expected behavior zero is displayed

To Reproduce

Paste the following in a patch and open a web browser to see the contents of the umenu and compare to display in Max:


----------begin_max5_patcher----------
566.3ocqTssahCCD84juBK+LajcBI.6+v9ErZExILPcIwNquPopp+6quDSCB
pnUZqTiYNdl434Li8a4Y3V4YPiQ+D8aTV1a4YYAHOP1jcFdfctqmoCtg6jCC
fvfWD2y.mMI7QlBP635wd1qHt.8K1YzI8bjWfVzH6.jhtmKfNoUDRQ4D3nBz
NFXFtTr8wdnfNSr.JWsofr.QWUWT6VpIdqppBB5O2IPeLzIbgcfK5AidN3Hy
z8DWbXFCUz5.C0UwkaYvkIo0jREYBkuKnQx1m+wFrG587b+mEeQQ25jbaRzN
wTB1.b6FehrT2TP7+UURW2TSVSW6N5qogJnITAkk+G0nxpU2guMKC7QtkuqU
rpjhYfgo4xPH38RYA1stv8wayzdKteRLBhIEQD+2+ZkFH3wKR0Q87.Cqy3OR
t40QHRWJmg+u30rNH8hdyTt9fATaAAqsGlKLZ1IX2Vlwn3sVC7wuzSs4o9ru
c1aA49DbB+5zaGlNbjBTRIHHlFMcXcvtqWwpFcojISxRpJtJo8Rwg6NGckWC
t4PuGKuyd5mjJyiSQRZKiaEF8SKey6ACbEqXuOwOXlmFufRiiaoa.MKqVUQn
MUM9a.e6gdxmOzSqiO8PV8EI79uSzx5NdP4dta27CA+fP5npm2c7J3OFIqm+
nRfCLab7DnzS0SPMcZ4yRk2byhfIWDMCziUvIdx+HBS4pSiqHspXO9byRbLT
4NPIr7v4I22AcTF5S94A8HqKFfucl+d9+zEWQZG
-----------end_max5_patcher-----------

Screenshots

image

Additional context A similar issue happens in Mira, though only zeros with a decimal (ie 0.) do not display when leading

Desktop (please complete the following information):