-
Notifications
You must be signed in to change notification settings - Fork 57
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
Page end considering components #78
Labels
bug
Something isn't working
Comments
There are some open issue discussions that revolve around this issue, we can take a look into this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, I would like to thank you for this library. I've tried a dozen different libraries for this, and none of them even came close to printing a file that matches the real HTML visualization as this one.
My problem is regarding denoting page endings. Let me show an example:
The content I want to print is a ngFor of a card with variable height (it includes a lot of other components inside it and I can't predict that each card will have a fixed size).
Printing the element shows the components as expected, but since they have different heights, sometimes the page ends don't match the end of the card, so we get cases of one card ending mid-page and another card already right next to it.
The expected behavior I would like is that this card, that would start mid-page, be bumped to the next page, so we don't mix those two cards.
I couldn't find anything in the documentation about it, but something like adding a directive inside the card, that bumps it into the next page, would work.
Is there anything implemented in regards to this use-case?
Thank you.
Edit: I tried break-after and break-before CSS attributes, but none of them seemed to work with Material Angular on Chrome.
The text was updated successfully, but these errors were encountered: