Fixed problem with line wrapping

This commit is contained in:
Hillel Coren 2015-03-22 15:13:05 +02:00
parent 09838a1b19
commit b040b5e242
2 changed files with 4 additions and 4 deletions

View File

@ -31565,7 +31565,7 @@ function GetPdf(invoice, javascript){
footerLeft: 420, footerLeft: 420,
tablePadding: 12, tablePadding: 12,
tableTop: 250, tableTop: 250,
descriptionLeft: 162, descriptionLeft: 150,
unitCostRight: 410, unitCostRight: 410,
qtyRight: 480, qtyRight: 480,
taxRight: 480, taxRight: 480,
@ -32752,7 +32752,7 @@ function displayInvoiceItems(doc, invoice, layout) {
SetPdfColor('Black', doc); SetPdfColor('Black', doc);
doc.setFontType('normal'); doc.setFontType('normal');
var splitDescription = doc.splitTextToSize(notes, 180); var splitDescription = doc.splitTextToSize(notes, 190);
doc.text(layout.descriptionLeft, y+2, splitDescription); doc.text(layout.descriptionLeft, y+2, splitDescription);
doc.text(costX, y+2, cost); doc.text(costX, y+2, cost);
if (!hideQuantity) { if (!hideQuantity) {

View File

@ -42,7 +42,7 @@ function GetPdf(invoice, javascript){
footerLeft: 420, footerLeft: 420,
tablePadding: 12, tablePadding: 12,
tableTop: 250, tableTop: 250,
descriptionLeft: 162, descriptionLeft: 150,
unitCostRight: 410, unitCostRight: 410,
qtyRight: 480, qtyRight: 480,
taxRight: 480, taxRight: 480,
@ -1229,7 +1229,7 @@ function displayInvoiceItems(doc, invoice, layout) {
SetPdfColor('Black', doc); SetPdfColor('Black', doc);
doc.setFontType('normal'); doc.setFontType('normal');
var splitDescription = doc.splitTextToSize(notes, 180); var splitDescription = doc.splitTextToSize(notes, 190);
doc.text(layout.descriptionLeft, y+2, splitDescription); doc.text(layout.descriptionLeft, y+2, splitDescription);
doc.text(costX, y+2, cost); doc.text(costX, y+2, cost);
if (!hideQuantity) { if (!hideQuantity) {