Merge pull request #304 from adrg/invoice-note-align

Fix invoice notes section alignment
This commit is contained in:
Gunnsteinn Hall 2019-01-08 17:37:49 +00:00 committed by GitHub
commit 15f437dc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -698,6 +698,7 @@ func (i *Invoice) generateHeaderBlocks(ctx DrawContext) ([]*Block, DrawContext,
cell := table.NewCell() cell := table.NewCell()
cell.SetHorizontalAlignment(CellHorizontalAlignmentLeft) cell.SetHorizontalAlignment(CellHorizontalAlignmentLeft)
cell.SetVerticalAlignment(CellVerticalAlignmentMiddle) cell.SetVerticalAlignment(CellVerticalAlignmentMiddle)
cell.SetIndent(0)
cell.SetContent(i.logo) cell.SetContent(i.logo)
i.logo.ScaleToHeight(titleParagraph.Height() + 20) i.logo.ScaleToHeight(titleParagraph.Height() + 20)
@ -738,6 +739,7 @@ func (i *Invoice) generateInformationBlocks(ctx DrawContext) ([]*Block, DrawCont
table.SetMargins(0, 0, 25, 0) table.SetMargins(0, 0, 25, 0)
cell := table.NewCell() cell := table.NewCell()
cell.SetIndent(0)
cell.SetContent(addrDivision) cell.SetContent(addrDivision)
cell = table.NewCell() cell = table.NewCell()