Freya Theme – Ctrl+P printing shows empty page #4311
-
|
Hi PrimeFaces team, I am using the Freya premium theme. When I try to print the page using Ctrl+P (or window.print()), the print preview shows only an empty page. The actual content is not visible. Steps to reproduce
Expected behavior Is there any recommended fix or support for enabling printing with Freya? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
@nhthinh-axonivy yes in @media print {
body * {
visibility: hidden;
}
#invoice-content * {
visibility: visible;
}
#invoice-content {
width: 100%;
position: absolute;
left: 0;
top: 0;
padding: 0;
margin: 0;
background: #ffffff;
color: rgba(41, 50, 65, 0.8);
}
.invoice {
.invoice-to {
border-top: 1px solid #F2F4F6;
}
.invoice-items table tr {
border-bottom: 1px solid #F2F4F6;
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
@melloware how can fix that nicely in the template it self? |
Beta Was this translation helpful? Give feedback.
-
|
fixed it for the next release |
Beta Was this translation helpful? Give feedback.
@nhthinh-axonivy yes in
invoice.scssit has this CSS Media which is blocking your printing. Just remove this CSS frominvoice.scss