Adding padding destroys the generated barcode
Closed this issue · 4 comments
SunboX commented
joushx commented
Please have a look at the readme file. The padding option needs an integer.
jQuery('#ean').EAN13('1230000000338', {
number: true,
prefix: false,
background: '#ffffff',
padding: 10
});
SunboX commented
oh, sry again. 😢 Maybe adding a parseInt(padding, 10)
to avoid such misreadings?
joushx commented
In my opinion the user has to make sure the parameters are correct. It would blow up the code to check for all possible wrong use cases.
SunboX commented
k, sry again