-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add attribute to limit the canvas-height to its container #128
Conversation
WIP: Pushed too early. |
Note: It seems that even the cleanly pulled branch does not pass the tests, with the same error I'm getting here. However, I see that Travis still says your own builds are passing. Am I doing something wrong? |
Thanks @lesteenman - I haven't look at this in detail, but could you see some instructions on CONTRIBUTING.md to run some tests / build locally with |
Yes, I have. I'm having no issues with steps 1-4. However, when I run
Note that this same error occurs with a clean clone of your repository, and the same error occurs with the Travis CI build. Running |
Updating |
This patch adds an attribute that, combined with `scale='page-fit'`, allows to fit the contents inside of the page both with respects to the width and with respect to the height. Think of it as using `background-size='contain'` rather than the default behavior of `background-size='cover'` that `scale='page-fit'` triggers.
edc4045
to
79082f0
Compare
This new version does not include |
@lesteenman can you please rebase this PR? Now the problems with tests should be resolved. |
The earliest I can do that is next Tuesday, probably. If there is a deadline before then, please do so yourself; the changes should be straightforward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply changes to src/angular-pdf.js instead of dist/angular-pdf.js, then commit only that file with readme.md and some tests/examples
allows to fit the contents inside of the page both with respects to the width and with respect to the height. Think of it as using `background-size='contain'` rather than the default behavior of `background-size='cover'` that `scale='page-fit'` triggers. thanks to @lesteenman, original author of this commit. close sayanee#128 and close sayanee#127
This patch adds an attribute that, combined with `scale='page-fit'`, allows to fit the contents inside of the page both with respects to the width and with respect to the height. Think of it as using `background-size='contain'` rather than the default behavior of `background-size='cover'` that `scale='page-fit'` triggers. thanks to @lesteenman, original author of this commit. close #128 and close #127
This patch adds an attribute that, combined with
scale='page-fit'
,allows to fit the contents inside of the page both with respects to the
width and with respect to the height. Think of it as using
background-size='contain'
rather than the default behavior ofbackground-size='cover'
thatscale='page-fit'
triggers.Fixes #127.