Skip to content

Commit 46c4b38

Browse files
committed
fix(typerenderer): set default size of qrcode to 128x128
Instead of not-working auto-size Closes #800
1 parent 5a9d0a9 commit 46c4b38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/src/util/typerenderer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ define([
5454
});
5555
};
5656
functions.qrcode.toscreen = function ($element, val, rootVal, options) {
57-
var l = Math.min($element.width(), $element.height());
5857
var defaultOptions = {
59-
width: l,
60-
height: l,
58+
width: 128,
59+
height: 128,
6160
text: String(val)
6261
};
6362

0 commit comments

Comments
 (0)