394 |
394 |
|
395 |
395 |
# write the cells on page
|
396 |
396 |
issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
|
397 |
|
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_width)
|
|
397 |
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
398 |
398 |
pdf.SetY(base_y + max_height);
|
399 |
399 |
|
400 |
400 |
# rows
|
... | ... | |
474 |
474 |
|
475 |
475 |
# write the cells on page
|
476 |
476 |
issues_to_pdf_write_cells(pdf, col_values, col_width, row_height)
|
477 |
|
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_width)
|
|
477 |
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
478 |
478 |
pdf.SetY(base_y + max_height);
|
479 |
479 |
|
480 |
480 |
if query.has_column?(:description) && issue.description?
|
... | ... | |
511 |
511 |
end
|
512 |
512 |
|
513 |
513 |
# Draw lines to close the row (MultiCell border drawing in not uniform)
|
514 |
|
def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, col_widths)
|
|
514 |
def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, id_width, col_widths)
|
515 |
515 |
col_x = top_x
|
516 |
516 |
pdf.Line(col_x, top_y, col_x, lower_y) # id right border
|
517 |
517 |
col_widths.each do |width|
|