Skip to content
Snippets Groups Projects
Commit 8e2fa5d6 authored by srosse's avatar srosse
Browse files

OO-1270: the first x must be pushed with the calculated size of the first column

parent 147fa435
No related branches found
No related tags found
No related merge requests found
......@@ -257,7 +257,8 @@ public class CheckboxPDFExport extends PdfDocument implements MediaResource {
return headers;
}
public int drawTable(String[] headers, String[][] content, int offset, float maxHeaderSize, float nameMaxSize, float fontSize, float cellMargin)
public int drawTable(String[] headers, String[][] content, int offset,
float maxHeaderSize, float nameMaxSize, float fontSize, float cellMargin)
throws IOException {
float tableWidth = width;
......@@ -324,6 +325,7 @@ public class CheckboxPDFExport extends PdfDocument implements MediaResource {
currentY -= headerHeight;
//draw the content
textx = marginLeftRight + cellMargin;
texty = currentY - 15;
for (int i=offset; i<end; i++) {
......@@ -339,7 +341,7 @@ public class CheckboxPDFExport extends PdfDocument implements MediaResource {
currentContentStream.drawString(text);
currentContentStream.endText();
}
textx += (j==0 ? 100 : colWidth);
textx += (j==0 ? nameMaxSize : colWidth);
}
texty -= rowHeight;
textx = marginLeftRight + cellMargin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment