-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Center the QR code, solution #111
Comments
why not done yet?!! it's an old issue with simple solution! |
This is actually implemented already but is blocked from ever running. Take a look at the
With this change you leave line 404 alone and don't add your code. The |
Fixes the code to properly center the QR code when no padding is provided.
Fixes the code to properly center the QR code when no padding is provided.
Hi, did post this before but to a closed one #2
As wanted to use the library, I have made a tweak to fix the issue this just one line change if you want to include into the official version.
just replace line 404 in qrious.js
from:
var offset = this.getOffset(frame);
to:
var offset=parseInt((this.element.width-(frame.width*moduleSize))/2);
tested across a variety of sizes and content
The text was updated successfully, but these errors were encountered: