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

How to prevent closing preview window after print or cancel? #38

Open
gkandemi opened this issue Feb 16, 2020 · 6 comments
Open

How to prevent closing preview window after print or cancel? #38

gkandemi opened this issue Feb 16, 2020 · 6 comments
Labels
hacktoberfest Hacktoberfest 2020

Comments

@gkandemi
Copy link

How to prevent closing preview window after print or cancel?

@jofftiquez
Copy link
Member

Helle @gkandemi, thanks for posting an issue. By design this plugins automatically closes the window after printing or when cancel is clicked. See here.

May I know the reason behind this request? While it is ok to add an option to prevent the closing, I still need to understand the problem or the reason so that I would be able formulate a better solution. Thanks.

@gkandemi
Copy link
Author

gkandemi commented Mar 3, 2020

Hello @jofftiquez, Thanks for replying. Well, it would be nice to preview in browser my template.
BTW sorry for late response. I didn't realized the notification :)

If you don't have enough time please don't read below :)

So one favour, Do you know any print templates? I mean, I am doing print template like that.

Header Content (Iteration on every page ) Real content iteration items Footer Content (Iteration on every page )

Well the problem is, if tbody content shorter than page length tfooter locates after tbody immediately. I would like to footer content always stick bottom and shows on every page.

I can do it by

but on this case I can't put footer on all pages bottom.

I hope I could explain what I mean :)

Thanks for response.

@jofftiquez
Copy link
Member

Hello, I understand. I thinks it's pretty doable. I will do it soon.

Sorry, I didn't get the whole problem but it sounds like this could help you https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/.

@gkandemi
Copy link
Author

gkandemi commented Mar 3, 2020

Hi,

Thanks both of them :)

@gkandemi
Copy link
Author

gkandemi commented Mar 3, 2020

Hello again, @jofftiquez

I forgot to say about a bug. I don't know you saw this before. Well When I tried to preview my component, by doing "$htmlToPaper" Preview Screen Appears after that closing immediately. I need to try a couple of times to get preview window.

My components could have images sometimes. What do you think about it? is it because of images?

Thanks for this plugin and your works :)

@jofftiquez
Copy link
Member

Hello @gkandemi thanks for the feedback.

Would mind including a screenshot of the error?

As for the image, you also have to consider the load time of the image. I'll see what I can do about it.

@jofftiquez jofftiquez added the hacktoberfest Hacktoberfest 2020 label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest 2020
Projects
None yet
Development

No branches or pull requests

2 participants