jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.85k stars 2.5k forks source link

When set `render: 'table'`, it can not work. #72

Open hiddaorear opened 9 years ago

hiddaorear commented 9 years ago
$code.qrcode({
    width   : 175
    ,height:175
    ,render : 'table'
    ,text   : 'http://pr.oneplus.cn/blog/2015/pete-whats-never-settle'
});

Hi, this is a bug. The qr code cannot access. But, if we take out width and height, it is good. when set render: 'canvas', it also good.

I guess the size algorithm has a problem, when the render is table.

RyanLiu0235 commented 8 years ago

i've got the same problem as you do, when 'render' is set as 'table', there'll be some mistakes with the width and height of each td of the table, which makes the table a triangle rather than a square. if you have some clue, plz share with us, thx.

hiddaorear commented 8 years ago

I'm sorry, i do not have a good idea. Maybe we want to read the souce code.

davidweining2333 commented 7 years ago

do you resolve this problem? @hiddaorear @stop2stare

RyanLiu0235 commented 7 years ago

It's been a long time that I can't remember what this issue is about, and still, it remains unresolved.