]> source.dussan.org Git - vaadin-framework.git/commitdiff
simple css print instructions, to bypass our overflow hacks during print process
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Sep 2008 13:10:48 +0000 (13:10 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Sep 2008 13:10:48 +0000 (13:10 +0000)
svn changeset:5561/svn branch:trunk

WebContent/ITMILL/themes/default/common/common.css
WebContent/ITMILL/themes/default/styles.css

index e801702c0a2ceba45e3bef385c161f86da3361bb..e2b1b15a1f2e387ff78b456934e2facadf5c7d8b 100644 (file)
        outline: none;
        margin-top:-1px;
        border-top:1px solid transparent;
-}\r
+}
+
+
+/**
+ * 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;
index 06bdfbf14af3fcf74f988cc87058d933b4275ad6..da718c52fa0c9568e987ba289866b9ada656c42b 100644 (file)
        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;
 }