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

Page end considering components #78

Open
FranciscoKnebel opened this issue Apr 30, 2020 · 1 comment
Open

Page end considering components #78

FranciscoKnebel opened this issue Apr 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@FranciscoKnebel
Copy link

FranciscoKnebel commented Apr 30, 2020

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.

@broem broem added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 1, 2020
@broem
Copy link
Collaborator

broem commented May 1, 2020

There are some open issue discussions that revolve around this issue, we can take a look into this.

This was referenced Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants