From: Matti Tahvonen Date: Tue, 30 Sep 2008 13:10:48 +0000 (+0000) Subject: simple css print instructions, to bypass our overflow hacks during print process X-Git-Tag: 6.7.0.beta1~4056 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c2d571d55b8a237b07b9a2b3b905fcdd1bbb718;p=vaadin-framework.git simple css print instructions, to bypass our overflow hacks during print process svn changeset:5561/svn branch:trunk --- 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; }