andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
918 stars 67 forks source link

save_pdf won't precisely fill an entire page #317

Open nickolasreynolds opened 4 years ago

nickolasreynolds commented 4 years ago

If the contents of a page that save_pdf is rendering is exactly the size of that page -- for example, left page margin + three cards + right page margin is exactly the same width as the page -- then save_pdf thinks it doesn't fit and will render one fewer column than would actually fit.

(This is of course easy to work around by simply subtracting a pixel from the page margins, but still annoying.)