From 896f3a95a74da24cbac29cd30825d821e7aa8cd5 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 12 Jun 2013 16:59:44 +0200 Subject: [PATCH] Bug 10451 - Firefox prints only first page of table with shrink to fit option 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