Browse Source

Attempt to prevent WebKit from cleaving graphic in twain

Neal Wilson 11 years ago
parent
commit
2509b301f0
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      config/Reports/chart.xml

+ 5
- 2
config/Reports/chart.xml View File

113
                 output.writeEndElement();
113
                 output.writeEndElement();
114
                 query.exec("ABORT");
114
                 query.exec("ABORT");
115
                 output.writeEndElement();
115
                 output.writeEndElement();
116
+				output.writeStartElement("p");
117
+				output.writeAttribute("style", "page-break-inside: avoid");
116
                 output.writeStartElement("svg");
118
                 output.writeStartElement("svg");
117
                 output.writeAttribute("xmlns", "http://www.w3.org/2000/svg");
119
                 output.writeAttribute("xmlns", "http://www.w3.org/2000/svg");
118
                 output.writeAttribute("width", "7.5in");
120
                 output.writeAttribute("width", "7.5in");
326
                         output.writeEndElement();
328
                         output.writeEndElement();
327
                     }
329
                     }
328
                     pos++;
330
                     pos++;
329
-                }            
331
+                }
330
                 output.writeEndElement();
332
                 output.writeEndElement();
331
                 i = 0;
333
                 i = 0;
332
                 while(i <= maxy1)
334
                 while(i <= maxy1)
422
                     {
424
                     {
423
                         i = days - 1;
425
                         i = days - 1;
424
                     }
426
                     }
425
-                }            
427
+                }
426
                 output.writeStartElement("rect");
428
                 output.writeStartElement("rect");
427
                 output.writeAttribute("fill", "rgb(0,0,0)");
429
                 output.writeAttribute("fill", "rgb(0,0,0)");
428
                 output.writeAttribute("x", "45");
430
                 output.writeAttribute("x", "45");
493
                 output.writeEndElement();
495
                 output.writeEndElement();
494
                 output.writeEndElement();
496
                 output.writeEndElement();
495
                 output.writeEndElement();
497
                 output.writeEndElement();
498
+				output.writeEndElement();
496
                 output.writeEndDocument();
499
                 output.writeEndDocument();
497
                 view.setContent(buffer);
500
                 view.setContent(buffer);
498
                 buffer.close();
501
                 buffer.close();

Loading…
Cancel
Save