From 2c2d571d55b8a237b07b9a2b3b905fcdd1bbb718 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 30 Sep 2008 13:10:48 +0000 Subject: [PATCH] simple css print instructions, to bypass our overflow hacks during print process svn changeset:5561/svn branch:trunk --- .../ITMILL/themes/default/common/common.css | 24 ++++++++++++++++++- WebContent/ITMILL/themes/default/styles.css | 22 +++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/WebContent/ITMILL/themes/default/common/common.css b/WebContent/ITMILL/themes/default/common/common.css index e801702c0a..e2b1b15a1f 100644 --- a/WebContent/ITMILL/themes/default/common/common.css +++ b/WebContent/ITMILL/themes/default/common/common.css @@ -24,7 +24,29 @@ outline: none; margin-top:-1px; border-top:1px solid transparent; -} +} + + +/** + * Try to cope printing somehow. Reasonable printing support + * needs application specific planning and CSS tuning. + */ +@media print { + .i-generated-body { + height: auto; + min-height: 20cm; + overflow: visible; + } + .i-app { + height:auto; + min-height: 20cm; + } + + .i-view { + overflow: visible; + } + +} .i-view:active, .i-view:focus { outline: none; diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css index 06bdfbf14a..da718c52fa 100644 --- a/WebContent/ITMILL/themes/default/styles.css +++ b/WebContent/ITMILL/themes/default/styles.css @@ -156,6 +156,28 @@ border-top:1px solid transparent; } + +/** + * Try to cope printing somehow. Reasonable printing support + * needs application specific planning and CSS tuning. + */ +@media print { + .i-generated-body { + height: auto; + min-height: 20cm; + overflow: visible; + } + .i-app { + height:auto; + min-height: 20cm; + } + + .i-view { + overflow: visible; + } + +} + .i-view:active, .i-view:focus { outline: none; } -- 2.39.5