0011984: printing events with tags is broken for daysview
authorCornelius Weiß <c.weiss@metaways.de>
Wed, 29 Jun 2016 11:20:33 +0000 (13:20 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Mon, 11 Jul 2016 10:03:51 +0000 (12:03 +0200)
Change-Id: I69f3e53486e274ee95c38003e4afe6e628aad40c
Reviewed-on: http://gerrit.tine20.com/customers/3287
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Calendar/css/print.css
tine20/Tinebase/js/ux/Printer/renderers/Base.js

index 1236def..5ce40e4 100644 (file)
@@ -117,11 +117,11 @@ div.page
 }
 
 .cal-daysviewpanel-body-daycolumn-today {
-    background-color: #FFFFFF;
+    background-color: transparent;
 }
 
 .cal-daysviewpanel-body-daycolumn-today .cal-daysviewpanel-daycolumn-row {
-    color: #FFFFFF;
+    color: transparent;
 }
 
 .cal-daysviewpanel-dayheader-today, .cal-daysviewpanel-dayheader-day-wrap:hover {
@@ -234,4 +234,16 @@ div.page
 .cal-print-single-logo {
     text-align: right;
     margin-bottom: 1cm;
+}
+
+/* ------------ tags (from)
+ tinebase ------------ */
+.tb-grid-tags {
+    width: 8px;
+    height: 8px;
+    border: 1px solid black;
+    float: left;
+    margin-right: 2px;
+    margin-top: 1px;
+    border-radius: 5px;
 }
\ No newline at end of file
index 245741d..7bf4a05 100644 (file)
@@ -19,10 +19,7 @@ Ext.ux.Printer.BaseRenderer = Ext.extend(Object, {
   
   constructor: function(config) {
     Ext.apply(this, config);
-    
-    if (this.debug) {
-        this.printStrategy = 'window';
-    }
+
     Ext.ux.Printer.BaseRenderer.superclass.constructor.call(this, config);
   },
 
@@ -69,18 +66,28 @@ Ext.ux.Printer.BaseRenderer = Ext.extend(Object, {
   iframePrint: function(component) {
     var id = Ext.id(),
     doc = document,
-    frame = doc.createElement('iframe');
-        
+    frame = doc.createElement('iframe'),
+    style = {
+      position: 'absolute',
+      'background-color': '#FFFFFF',
+      width: '210mm',
+      height: '297mm',
+      top: '-10000px',
+      left: '-10000px'
+    };
+
+    if (this.debug) {
+      Ext.apply(style, {
+        top: '0px',
+        left: '0px',
+        'z-index': 10000000
+      });
+    }
+
     Ext.fly(frame).set({
       id: id,
       name: id,
-      style: {
-        position: 'absolute',
-        width: '210mm',
-        height: '297mm',
-        top: '-10000px',
-        left: '-10000px'
-      }
+      style: style
     });
     
     doc.body.appendChild(frame);