mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-26 12:59:31 +00:00
Fixed problem of missing page breaks when generating multiple labels
This was caused by some behavior change introduced in dompdf 3.1.1 This fixes issue #1070
This commit is contained in:
parent
e1418dfdc1
commit
4d98605e93
4 changed files with 473 additions and 441 deletions
|
|
@ -3,17 +3,31 @@
|
|||
}
|
||||
|
||||
.page {
|
||||
/** We cannot apply the position: absolute trick here, because then dompdf will not respect the page break anymore **/
|
||||
|
||||
page-break-inside: avoid;
|
||||
page-break-before: avoid;
|
||||
page-break-after: always;
|
||||
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.page-inner {
|
||||
/* Absolute position prevents automatic page breaks */
|
||||
/*position: absolute;*/
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
page-break-inside: avoid;
|
||||
page-break-before: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
/* Last page should not break */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue