[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 6291, Cart printing truncated in Firefox

Nicole C. Engard nengard at bywatersolutions.com
Wed Jul 6 06:35:34 CEST 2011


From: Owen Leonard <oleonard at myacpl.org>

Implementing 100% width and height on <table>,<td>, and <th>
as suggested by this post:

http://www.piglets.org/serendipity/archives/45-Fixing-truncated-printing-with-Firefox.html

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 koha-tmpl/intranet-tmpl/prog/en/css/print.css |    9 +++++++--
 koha-tmpl/opac-tmpl/prog/en/css/print.css     |    9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/print.css b/koha-tmpl/intranet-tmpl/prog/en/css/print.css
index 955b68b..d2ad905 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/print.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/print.css
@@ -17,7 +17,7 @@ body {
 	background-color : #FFF;
 	color : #333333;
 	font-family : arial, geneva, sans-serif;
-	font-size : 14px;
+	font-size : 12px;
 	margin : 0px 0px 0px 0px;
 }
 
@@ -94,7 +94,8 @@ table {
 	border-left : 1px solid #CCCCCC;
 	margin : 3px 0px 5px 0px;
 	padding : 0px;
-	width : 99%;
+	width : 100%;
+	height : 100%;
 }
 
 table.list {
@@ -114,6 +115,8 @@ td {
 	border-left : 0;
 	font-size : 12px;
 	padding : 5px 5px 5px 5px;
+	width : 100%;
+	height : 100%;
 }
 
 td:last-child {
@@ -124,6 +127,8 @@ td:last-child {
 	border-left : 0;
 	font-size : 12px;
 	padding : 5px 5px 5px 5px;
+	width : 100%;
+	height : 100%;
 }
 
 table.list th {
diff --git a/koha-tmpl/opac-tmpl/prog/en/css/print.css b/koha-tmpl/opac-tmpl/prog/en/css/print.css
index 85df351..53db2bc 100644
--- a/koha-tmpl/opac-tmpl/prog/en/css/print.css
+++ b/koha-tmpl/opac-tmpl/prog/en/css/print.css
@@ -17,7 +17,7 @@ body {
 	background-color : #FFF;
 	color : #333333;
 	font-family : arial, geneva, sans-serif;
-	font-size : 14px;
+	font-size : 12px;
 	margin : 0px 0px 0px 0px;
 }
 
@@ -98,7 +98,8 @@ table {
 	border-left : 0px solid #CCCCCC;
 	margin : 3px 0px 5px 0px;
 	padding : 0px;
-	width : 99%;
+	width : 100%;
+	height : 100%;
 }
 
 td {
@@ -107,6 +108,8 @@ td {
 	border-right : 1px solid #CCCCCC;
 	padding : 5px 5px 5px 5px;
 	vertical-align : top;
+	width : 100%;
+	height : 100%;
 }
 
 td:last-child {
@@ -123,6 +126,8 @@ th {
 	border-right : 1px solid #CCCCCC;
 	font-weight : bold;
 	padding : 5px 5px 5px 5px;
+	width: 100%;
+	height : 100%;
 }
 
 th:last-child {
-- 
1.7.2.3



More information about the Koha-patches mailing list