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

Unassigned variable boxes fail crash assembly #41

Open
mikemitchel opened this issue Jun 8, 2021 · 0 comments
Open

Unassigned variable boxes fail crash assembly #41

mikemitchel opened this issue Jun 8, 2021 · 0 comments
Assignees

Comments

@mikemitchel
Copy link
Collaborator

mikemitchel commented Jun 8, 2021

Had an issue where 7 pdf templates were failing to render with can't find width of undefined error. Turns out the smallest of unassigned variable boxes was on the 4th template, and was causing the above error. Error was happening here:

var scaleX = pdfSize.width / domSize.width

Screen Shot 2021-06-08 at 10 58 59 AM

the fix is probably to catch the empty box at the point of assembly in the DAT where the above function is being used - aka, if a box doesn't have a variable assigned, don't call the above failing function.

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

No branches or pull requests

3 participants