mirror of
https://github.com/status-im/react-native-qrcode.git
synced 2025-01-23 09:00:37 +00:00
fix qrcode can't be recognized
This commit is contained in:
parent
f0c73ac40c
commit
c0c8b16d84
@ -20,6 +20,8 @@ function renderCanvas(canvas) {
|
||||
var cells = this.cells;
|
||||
var cellWidth = this.size / cells.length;
|
||||
var cellHeight = this.size / cells.length;
|
||||
var nRoundedWidth = Math.round(cellWidth);
|
||||
var nRoundedHeight = Math.round(cellHeight);
|
||||
cells.forEach(function(row, rowIndex) {
|
||||
row.forEach(function(column, columnIndex) {
|
||||
var nLeft = columnIndex * cellWidth;
|
||||
|
Loading…
x
Reference in New Issue
Block a user