Skip to content
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

Fix for issue #111 #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

blizzardengle
Copy link

The code was already in place to auto center the QR code but was being blocked in the getOffset() function by checking for the padding improperly. I added a second check to make sure padding is greater than 0 and if not to run the centering math that was already in place.

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.
@arusahni
Copy link

arusahni commented Oct 8, 2020

Hi @neocotic! I recently bumped into this issue. I was wondering if this PR can be considered mergeable? Thanks for the library :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants