[Koha-patches] [PATCH] Bug 10451 - Firefox prints only first page of table with shrink to fit option

Dobrica Pavlinusic dpavlin at rot13.org
Thu Nov 14 13:15:43 CET 2013


According to Firefox bug tracker, versions up to 21 doesn't print
tables correctly when using shrink to fit option. See:

https://bugzilla.mozilla.org/show_bug.cgi?id=684622

However, even with v21 or newer, we still need to add css to
print media which instruct it not to break table tag to print
all pages of table. This has a side-effect that table starts
always on next page, wasting some space on first printed page.
---
 koha-tmpl/intranet-tmpl/prog/en/css/print.css |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/print.css b/koha-tmpl/intranet-tmpl/prog/en/css/print.css
index 239059c..203ca55 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/print.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/print.css
@@ -95,6 +95,8 @@ table {
 	margin : 3px 0px 5px 0px;
 	padding : 0px;
 	width : 99%;
+	/* tries to fix firefox 21+ shrink-to-fit */
+	page-break-inside: avoid;
 }
 
 table.list {
-- 
1.7.2.5



More information about the Koha-patches mailing list